GivePlayerScore? - 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: GivePlayerScore? (
/showthread.php?tid=126151)
GivePlayerScore? -
bartje01 - 07.02.2010
Is there something like GivePlayerScore(playerid,1); ?
I need that
Re: GivePlayerScore? -
notime - 07.02.2010
no you can use it like:
Код:
if(GetPlayerScore(playerid) == 100)
means his score has to be 100 to a command or where every you place it.
Re: GivePlayerScore? -
Rubennnnn - 07.02.2010
https://sampwiki.blast.hk/wiki/SetPlayerScore
Re: GivePlayerScore? -
notime - 07.02.2010
Quote:
|
Originally Posted by Rubennnnn
|
u mean:
https://sampwiki.blast.hk/wiki/GetPlayerScore
?
Re: GivePlayerScore? -
Streetplaya - 07.02.2010
pawn Код:
#define GivePlayerScore(playerid, score) SetPlayerScore(playerid, GetPlayerScore(playerid) + score)
Re: GivePlayerScore? -
CrucixTM - 07.02.2010
Mave's, or simply
Код:
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
Re: GivePlayerScore? -
bartje01 - 07.02.2010
thanks guys
Re: GivePlayerScore? -
Streetplaya - 07.02.2010
Quote:
|
Originally Posted by CrucixTM
Mave's, or simply
Код:
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
|
that's just what I did in that macro?
with my macro you could use
pawn Код:
GivePlayerScore(playerid, 1);
in the code.
Re: GivePlayerScore? -
CrucixTM - 07.02.2010
Yeah but if he needs it like one place in his code, defining it may not be necessary.