[HELP] /selldrugs CMD :(
#6

Just change iAmount and iId in case DIALOG_SELLDRUGS to something else and change it in that dialog to match. Like this:

PHP код:
case DIALOG_SELLDRUGS
        { 
            if(!
response
            { 
                return 
1
            } 
            if(
response
            { 
                new 
AmountpID;  
                
Amount GetPVarInt(playerid"iAmount");  
                
pID GetPVarInt(playerid"iId"); //Now we are simply getting the player variables which we stored in the command.  
                
DeletePVar(playerid"iAmount"); 
                
DeletePVar(playerid"iId"); //Just deleting the player variables since we are no longer using them.  
                 
                
PlayerInfo[playerid][pDrugs]--; 
                
PlayerInfo[pID][pDrugs]++; 
                
GivePlayerMoney(playeridAmount); 
                
GivePlayerMoney(pID, - Amount); 
            } 
            return 
1
        } 
Reply


Messages In This Thread
[HELP] /selldrugs CMD :( - by MiGu3X - 30.04.2013, 20:34
Re: [HELP] /selldrugs CMD :( - by Chenko - 01.05.2013, 00:07
Re: [HELP] /selldrugs CMD :( - by MiGu3X - 01.05.2013, 00:11
Re: [HELP] /selldrugs CMD :( - by Chenko - 01.05.2013, 00:24
Re: [HELP] /selldrugs CMD :( - by MiGu3X - 01.05.2013, 00:25
Re: [HELP] /selldrugs CMD :( - by Chenko - 01.05.2013, 00:30
Respuesta: [HELP] /selldrugs CMD :( - by MiGu3X - 01.05.2013, 04:32
Re: [HELP] /selldrugs CMD :( - by MiGu3X - 02.05.2013, 13:08
Re: [HELP] /selldrugs CMD :( - by MiGu3X - 10.05.2013, 00:50
Re: [HELP] /selldrugs CMD :( - by horsemeat - 10.05.2013, 02:25

Forum Jump:


Users browsing this thread: 3 Guest(s)