Subtracing a variable - 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: Subtracing a variable (
/showthread.php?tid=160557)
Subtracing a variable -
Venturas - 17.07.2010
PlayerInfo[playerid][pSmoke] -=;
How do I subtract the current number of the variable I have by 1?
Re: Subtracing a variable -
cessil - 17.07.2010
PlayerInfo[playerid][pSmoke] -= 1;
Re: Subtracing a variable -
Zezombia - 17.07.2010
Or simply PlayerInfo[playerid][pSmoke]--;
Re: Subtracing a variable -
Venturas - 17.07.2010
Quote:
Originally Posted by Zezombia
Or simply PlayerInfo[playerid][pSmoke]--;
|
thank you