String to variable
#5

I mean:
pawn Код:
new str[64];
enum stuff{
   Variable1,
   Variable2
}
new Info[stuff];

// some public
switch(x)
{
   case 1: format(str,sizeof(str),"Variable1");
   case 2: format(str,sizeof(str),"Variable2");
}
Info[str] // he should look Variable1 but str
Reply


Messages In This Thread
String to variable - by whitedragon - 10.10.2011, 19:33
Re: String to variable - by FireCat - 10.10.2011, 19:36
Re: String to variable - by Kush - 10.10.2011, 20:01
Re: String to variable - by grand.Theft.Otto - 10.10.2011, 20:32
Re: String to variable - by whitedragon - 10.10.2011, 20:52
Re: String to variable - by Vince - 10.10.2011, 21:06

Forum Jump:


Users browsing this thread: 1 Guest(s)