Problem
#3

Err... that's a stupid approach.

What you could do is something like this:

pawn Код:
new
    aUserAdminLevels[][16] = {"None", "Rank1", "Rank2", "Rank3", "Rank4"};
What you could do then, is something like this:

pawn Код:
new
    iUserAdminLevel = 2,
    sString[64];

format(sString, sizeof sString, "Administrator level: %s", aUserAdminLevels[iUserAdminLevel]);
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.
Reply


Messages In This Thread
Problem - by [LSB]TheGame - 17.07.2010, 13:12
Re: Problem - by Erkan - 17.07.2010, 17:29
Re: Problem - by Westie - 17.07.2010, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)