SA-MP Forums Archive
score help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: score help (/showthread.php?tid=270097)



score help - Rafa - 19.07.2011

How i can make the score when ill do something to increase +1 im trying with setplayerscore but it makes alwaus one... :/
Thanks.


Re: score help - SergiKirov - 19.07.2011

I'm sorry, but i can't understand what your asking here.


Re: score help - Kitten - 19.07.2011

pawn Код:
SetPlayerScore(playerid,GetPlayerScore(playerid) +1);



Re: score help - [HiC]TheKiller - 19.07.2011

pawn Код:
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
That will add to the players score or you can use this define

pawn Код:
#define GivePlayerScore(%1, %2) SetPlayerScore(%1, GetPlayerScore(%1) + %2);