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