17.07.2010, 17:44
Err... that's a stupid approach.
What you could do is something like this:
What you could do then, is something like this:
Obviously there is a limitation that anyone with a user level greater than 4 will crash the server, so you'll need some error checking.
What you could do is something like this:
pawn Код:
new
aUserAdminLevels[][16] = {"None", "Rank1", "Rank2", "Rank3", "Rank4"};
pawn Код:
new
iUserAdminLevel = 2,
sString[64];
format(sString, sizeof sString, "Administrator level: %s", aUserAdminLevels[iUserAdminLevel]);