Rank name not loading properly.
#1

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:
Код:
	pRankName[160],
This is the /stats stock:

Код:
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;
}
Reply


Messages In This Thread
Rank name not loading properly. - by OMonger - 23.10.2015, 13:38
Re: Rank name not loading properly. - by ATGOggy - 23.10.2015, 15:01
Re: Rank name not loading properly. - by OMonger - 23.10.2015, 16:07
Re: Rank name not loading properly. - by ATGOggy - 23.10.2015, 16:11
Re: Rank name not loading properly. - by OMonger - 23.10.2015, 19:19
Re: Rank name not loading properly. - by ATGOggy - 24.10.2015, 05:40
Re: Rank name not loading properly. - by OMonger - 24.10.2015, 10:27

Forum Jump:


Users browsing this thread: 1 Guest(s)