Variable name from string?
#2

Use a loop and an array
for exampe:
in your PlayerInfo enum you but:

pSomething[10],

Then somewhere in your code:
pawn Код:
for(new i = 0; i < 10; i++)
{
  psomeThing[i] = yourvaleu;
}
Reply


Messages In This Thread
Variable name from string? - by Whizion - 04.10.2012, 10:53
Re: Variable name from string? - by Roel - 04.10.2012, 10:58
Re: Variable name from string? - by Whizion - 04.10.2012, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)