Quote:
Originally Posted by kingmk
You can look my code above, it's more effcicient.
|
No, it's not. Your code and the OP's is an infinite loop.
Quote:
Originally Posted by kingmk
Код:
new i;
for(i = 0; i < 10; j++)
{
if(Bag[playerid][i][Slot] == 0)
{
Bag[playerid][i][Slot] = 1279;
Bag[playerid][i][Unity] = 100;
return 1;
}
}
if(i==10) SendClientMessage(playerid, -1, "Your bag is full.");
|