[SOLVED]Variables - Urgent!
#1

Okay, i know that if you use say

pawn Код:
new Point = 0;
then later on in your script you use

pawn Код:
Point++;
to plus it by one.

My question is how would I go about adding or subtracting like 5 without making another variable.

Example:

pawn Код:
new current = Point;
Point = current + 5;
or

pawn Код:
Point = Point + 5;
Help is much appreciated.

EDIT: I solved my own problem by accident.

pawn Код:
Point += 5;

or

Point -= 5;
Thanks anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)