Changing rank number to name.
#2

You can make a function with a switch, that returns the rank name to each of the rank numbers. Something like:
pawn Код:
GetRank(rankNumber, rankName[])
{
    switch(PlayerInfo[playerid][FactionRank])
    {
        case 1: rankName = 'RankName1';
        case 2: rankName = 'RankName2';
        ...
    }
    return 1;
}
After just, just call it to store the rank name into the array passed in the function header.
Reply


Messages In This Thread
Changing rank number to name. - by cloudysky - 08.07.2013, 14:06
Respuesta: Changing rank number to name. - by Xabi - 08.07.2013, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)