18.11.2013, 21:08
do you mean:
Код:
new items; for(new i = 0; i < 10; i++) { if(items < 10) { if(PlayerInfo[playerid][pSlot][i] == 0) { PlayerInfo[playerid][pSlot][i] = item; items++; } } else { SendClientMessage(playerid, COLOR_RED, "ERROR:{FFFFFF} Your inventory is full."); break; } }