23.10.2015, 13:38
I have a command, /stats, which shows a players faction and rank name after they relog. However it keeps showing only one letter from the rank, usually the beginning letter. This is the rank name enum:
This is the /stats stock:
Код:
pRankName[160],
Код:
stock ShowStatistics(playerid, id) { if(playerid == id) { new string[255]; format(string, sizeof(string), ". : : Statistics : : ."); SendClientMessage(playerid, COLOR_ORANGE, string); format(string, sizeof(string), "| Level: %d | Cash: $%d |", PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pCash]); SendClientMessage(playerid, SERVERCOLOR, string); format(string, sizeof(string), "| Faction: %s (%d) | Rank Name: %s |", faclist(playerid), PlayerInfo[playerid][pRank], PlayerInfo[playerid][pRankName]); SendClientMessage(playerid, SERVERCOLOR, string); } return 1; }