Integer convert to String
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
Create a constant array with level names and then use the variable as an index.
pawn Код:
new const gAdminLevels[][] = { "None", "Junior", "Senior" };

format(string, sizeof(string), "Your level is %s", gAdminLevels[pInfo[playerid][Admin]]);
wait,
if the level admin is 0 the output is None? and when The admin level is 1 the output will show Junior??
Reply


Messages In This Thread
Integer convert to String - by Genmetal - 02.04.2015, 14:42
Re: Integer convert to String - by Vince - 02.04.2015, 14:45
Re: Integer convert to String - by Jimmy0wns - 02.04.2015, 14:45
Re: Integer convert to String - by CalvinC - 02.04.2015, 14:49
Re: Integer convert to String - by Genmetal - 02.04.2015, 14:50
Re: Integer convert to String - by Genmetal - 02.04.2015, 14:56
Re: Integer convert to String - by PT - 02.04.2015, 14:57

Forum Jump:


Users browsing this thread: 2 Guest(s)