simple question - 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: simple question (
/showthread.php?tid=106482)
simple question -
kennyist - 03.11.2009
what is the command to add +1 to a players score , and hwere do i put it?
Re: simple question -
Streetplaya - 03.11.2009
Quote:
Originally Posted by kennyist
what is the command to add +1 to a players score
|
pawn Код:
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
Re: simple question -
Peter_Corneile - 03.11.2009
pawn Код:
if(strcmp("/givescore",cmdtext,true,10) == 0)
{
new score = GetPlayerScore(playerid);
SetPlayerScore(playerid,score+1);
return 1;
}