Full bag warning is flooding
#5

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.");
Reply


Messages In This Thread
Full bag warning is flooding - by Corin - 17.11.2018, 21:12
Re: Full bag warning is flooding - by ReD_HunTeR - 17.11.2018, 21:19
Re: Full bag warning is flooding - by kingmk - 17.11.2018, 21:24
Re: Full bag warning is flooding - by kingmk - 17.11.2018, 21:26
Re: Full bag warning is flooding - by CantBeJohn - 18.11.2018, 05:22
Re: Full bag warning is flooding - by kingmk - 18.11.2018, 22:16

Forum Jump:


Users browsing this thread: 1 Guest(s)