How to make a variable go up by 100? - 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: How to make a variable go up by 100? (
/showthread.php?tid=193188)
How to make a variable go up by 100? -
iTorran - 25.11.2010
Hello,
Im trying to script something quickly but ive ran into a problem.
I need to increase the variable by 100 each time the timer callback is called.
But all i know is how to make it increase by 1, not 100, So can anyone tell me how to make it go up by 100?
Like if the variabel already had 50, it wud maek it 150
Re: How to make a variable go up by 100? -
Retardedwolf - 25.11.2010
idk.
pawn Код:
variable = variable + 100;
or
Re: How to make a variable go up by 100? -
iTorran - 25.11.2010
Quote:
Originally Posted by Retardedwolf
idk.
pawn Код:
variable = variable + 100;
or
|
Thanks worked.