[Ajuda] Sistema de inventario
#5

PHP Code:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch(
dialogid) {
        case 
DIALOG_COMPRAR_INVENTARIO: {
            switch(
listitem) {
                case 
0: {
                    
pInfo[playerid][pMochila] = 10;
                    
pInfo[playerid][pMochilaAtiva] = true;
                    return 
true;
                }
                case 
1: {
                    
pInfo[playerid][pMochila] = 20;
                    
pInfo[playerid][pMochilaAtiva] = true;
                    return 
true;
                }
                case 
2: {
                    
pInfo[playerid][pMochila] = 30;
                    
pInfo[playerid][pMochilaAtiva] = true;
                    return 
true;
                }
            }
        }
    }
    return 
false;

ASSIM ?
Reply


Messages In This Thread
Sistema de inventario - by JuniorTheDM - 15.08.2015, 00:24
Re: Sistema de inventario - by HaRdiiZin - 15.08.2015, 00:27
Re: Sistema de inventario - by JuniorTheDM - 15.08.2015, 00:31
Re: Sistema de inventario - by iTakelot - 15.08.2015, 00:33
Re: Sistema de inventario - by JuniorTheDM - 15.08.2015, 00:35
Re: Sistema de inventario - by iTakelot - 15.08.2015, 00:36

Forum Jump:


Users browsing this thread: 1 Guest(s)