Advertisement
Traider

Untitled

Oct 27th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. if(sscanf(params, "s[32]S()[128]", comm1, comm2))
  2. {
  3. ForeachEx(i, MAX_ITEMS)
  4. {
  5. if(Item[i][iOwnerType] == ITEM_OWNER_PLAYER && Item[i][iOwner] == PlayerCache[playerid][UID] && Item[i][iUID] != 0)
  6. {
  7. if(Item[i][iUse]) format(string, sizeof(string), "%s\n{FFFFFF}%d\t{E8DBC5}%s{FFFFFF}\t\t\t%d\t%d", string, Item[i][iUID], Item[i][iName], Item[i][iValue1], Item[i][iValue2]);
  8. else format(string, sizeof(string), "%s\n{FFFFFF}%d\t{91896E}%s{FFFFFF}\t\t\t%d\t%d", string, Item[i][iUID], Item[i][iName], Item[i][iValue1], Item[i][iValue2]);
  9. l++;
  10. }
  11. }
  12. if(l) ShowPlayerDialog(playerid, DIALOG_ITEM, DIALOG_STYLE_LIST, "[Przedmiot] Lista", string, "Uzyj", "Opcje");
  13. else Infobox(playerid, "Nie znaleziono zadnych przedmiotow.");
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement