just an example code
#3

Код:
new choclate[MAX_PLAYERS]; // TOP OF SCRIPT

Command:buy(playerid,params[]) 
{ 
if(choclate[playerid] >= 1)//if he have 1 or more 
{ 
    GivePlayerMoney(playerid,5); 
    choclate[playerid] --;//subtract 1 
    } 
}
Need to use global vars
Reply


Messages In This Thread
just an example code - by Fernado Samuel - 13.01.2013, 20:47
AW: just an example code - by BiosMarcel - 13.01.2013, 20:56
Re: just an example code - by Kontrol - 13.01.2013, 21:00
Re: just an example code - by Mr.Anonymous - 13.01.2013, 21:13

Forum Jump:


Users browsing this thread: 1 Guest(s)