[Pedido] Quantia
#3

Quote:
Originally Posted by Whoo
Посмотреть сообщение
faзa um loop sobre os slots verificando os ids
Assim?

PHP код:
stock CheckItem(playeriditemid)
{
    for(new 
iMAX_SLOTSi++) // faz o loop em todos os slots
    
{
        if(
pInv[playerid][pItemSlot][i] == itemid// checa se o item no slot for igual ao item desejado
        
{
            return 
true// retorna verdadeiro
        
}
    }
    return 
false;

esse cуdigo ele sу checa se tem o id e nгo a quantidade dele no inventбrio
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)