+1 to command - 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: +1 to command (
/showthread.php?tid=291178)
+1 to command -
marik1322 - 18.10.2011
how to do that it will get +1 every time when i use that
no to set it to 1 point, add 1 point
PHP код:
GermanyPoints[playerid] =1;
Re: +1 to command -
Sinner - 18.10.2011
GermanyPoints[playerid]++;
?
Re: +1 to command -
Stigg - 18.10.2011
pawn Код:
GermanyPoints[playerid]++;//adds 1 point at a time
Re: +1 to command -
marik1322 - 18.10.2011
and -1 point?
like that ??
Quote:
GermanyPoints[playerid]--;
|
Re: +1 to command -
Stigg - 18.10.2011
EDIT Nevermind.
Re: +1 to command -
Wesley221 - 18.10.2011
Yep, just like that.
If you want to add like 10 points to it, there is an easier way of doing that.
pawn Код:
GermanyPoints[playerid] += 10; // this will add 10 points to the variable
GermanyPoints[playerid] -= 10; // this will remove 10 points from the variable
Re: +1 to command -
marik1322 - 18.10.2011
ok tnx!!