How to make a variable go up by 100?
#1

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
Reply
#2

idk.

pawn Код:
variable = variable + 100;
or

pawn Код:
variable += 100;
Reply
#3

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
idk.

pawn Код:
variable = variable + 100;
or

pawn Код:
variable += 100;
Thanks worked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)