[Pedido] Quantia
#9

se entendi seria isso.
Код:
stock AddItem(playerid, itemid, quantia)
{
	for(new i; i < MAX_SLOTS; i++)
	{
		if(quantia > 0)
		{
			if(pInv[playerid][pItemSlot][i] == 0)
			{
				pInv[playerid][pItemSlot][i] = itemid;
				quantia --;
			}
		}
		else break;
	}
	return 1;
}
Reply


Messages In This Thread
Quantia - by JPedro - 11.09.2016, 18:58
Re: Quantia - by Whoo - 11.09.2016, 19:17
Re: Quantia - by JPedro - 11.09.2016, 19:33
Re: Quantia - by Whoo - 11.09.2016, 19:37
Re: Quantia - by JPedro - 11.09.2016, 19:47
Re: Quantia - by JPedro - 11.09.2016, 20:00
Re: Quantia - by BykiLler - 11.09.2016, 20:56
Re: Quantia - by JPedro - 11.09.2016, 21:01
Re: Quantia - by Whoo - 11.09.2016, 21:26
Re: Quantia - by JPedro - 11.09.2016, 21:49

Forum Jump:


Users browsing this thread: 1 Guest(s)