19.01.2013, 19:38
pawn Code:
new x=2;
new y;
y=x;
printf("x==%i | y==%i", x, y);
x=5;
printf("x==%i | y==%i", x, y);
y is a variable though; does it have to be a constant? If yes, why?
#Edit#:
I've just tried it out and you obviously can also use a constant for that. Code for that:
pawn Code:
new x = 2;
new const y = x;
printf("x==%i | y==%i", x, y);
x=6;
printf("x==%i | y==%i", x, y);