player stats tiny problem
#1

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?
Reply
#2

+=10
Reply
#3

thank you very much all good now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)