SA-MP Forums Archive
player stats tiny problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: player stats tiny problem (/showthread.php?tid=532048)



player stats tiny problem - tommzy09 - 16.08.2014

hey guys, i have my own command called /pill which heals your health,

im currently using:

PHP код:
pInfo[playerid][pPills]++; 
im trying to make it so if you buy a 10 pack of pills, it gives you 10 pills, im doing it by spamming the same code 10 times over

PHP код:
pInfo[playerid][pPills]++;
pInfo[playerid][pPills]++;
pInfo[playerid][pPills]++;
pInfo[playerid][pPills]++;
pInfo[playerid][pPills]++;
pInfo[playerid][pPills]++;
pInfo[playerid][pPills]++;
pInfo[playerid][pPills]++;
pInfo[playerid][pPills]++;
pInfo[playerid][pPills]++; 
how can i make it add +10 to the stat within the same line, without having to spam like im doing so far?


Re: player stats tiny problem - DarkZeroX - 16.08.2014

+=10


Re: player stats tiny problem - tommzy09 - 16.08.2014

thank you very much all good now