SA-MP Forums Archive
[HELP] ++ using - 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: [HELP] ++ using (/showthread.php?tid=564403)



[HELP] ++ using - V4at - 21.02.2015

Hi guys, I have this one and it works fine:

pawn Код:
SetPlayerScore(playerid,GetPlayerScore(playerid)+6);
But now I need this code (below) to change like previous code with +6 :/

pawn Код:
GANGXP[ playerid ] ++;
How to do that?


Re: [HELP] ++ using - CalvinC - 21.02.2015

++ will increase the variable by one, to add a higher number you need to do this:
pawn Код:
GANGXP[ playerid ] += 6;