01.10.2014, 11:12
Try using a switch statement:
pawn Код:
stock GetAdminRank(playerid)
{
new Rank[60],
adminlevel = PlayerStat[playerid][AdminLevel;
switch(adminlevel)
{
case 0: format(Rank, sizeof(rank), "None");
case 1: format(Rank, sizeof(rank), "Guider");
case 2: format(Rank, sizeof(rank), "Senior Guider");
case 3: format(Rank, sizeof(rank), "Chief Guidere");
case 4: format(Rank, sizeof(rank), "Server Monitor");
case 5: format(Rank, sizeof(rank), "Junior Staff Member");
case 6: format(Rank, sizeof(rank), "General Staff Member");
case 7: format(Rank, sizeof(rank), "Senior Staff Member");
case 8: format(Rank, sizeof(rank), "Staff Executive");
case 9: format(Rank, sizeof(rank), "Staff Director");
case 10: format(Rank, sizeof(rank), "Server Director");
case 101: format(Rank, sizeof(rank), "Server Director [HoS]");
}
return Rank;
}