Variable
#1

Hello guys, i was wandering if this is possible:

Код:
new Player1, Player2, Player3;
new var = 3;

new result = Player(var);

So will result: Player3;
Its that possible? How to do this?
Reply
#2

Use an array.

Also, human readable variable names are discarded when the script is compiled because computers don't need them.
Reply
#3

not clear...
Someone else?
Reply
#4

Use an array, "[]" is that clear?
Reply
#5

pawn Код:
new array[] = {3, 6, 8};
// array[0] is Player1 = value 3
// array[1] is Player2 = value 6
// array[2] is Player3 = value 8
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)