Stats Error
#6

Код:
if (strcmp("/stats", cmdtext,true,10) == 0)
{
	new Msg[128], Name[24];

	GetPlayerName(playerid, Name, 24);

	format(Msg, 128, "-------------------------%s's Stats-------------------------", Name);
	SendClientMessage(playerid,COLOR_WHITE, Msg);
	format(Msg, 128, "Hand[%s] Bank[%s] Iron[%s] Wood[%s] Car1[%s] Car2[%s] AdminLevel[%s] Kills[%s]", PlayerInfo[playerid][pCash], PlayerInfo[playerid][pBank], PlayerInfo[playerid][pIron], PlayerInfo[playerid][pWood], PlayerInfo[playerid][pCarKey], PlayerInfo[playerid][pCarKey2], PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pKills]);
	SendClientMessage(playerid,COLOR_WHITE, Msg);
	format(Msg, 128, "Deaths[%s] Faction[%s]", PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pTeam]);
	SendClientMessage(playerid,COLOR_WHITE, Msg);
}
Since you didn't state what variable is an integer, float or string, replace "%s" by "%i" or "%f" accordingly.
Reply


Messages In This Thread
Stats Error - by R4mpage - 23.12.2013, 17:20
Re: Stats Error - by CutX - 23.12.2013, 17:31
Re: Stats Error - by R4mpage - 23.12.2013, 17:33
Re: Stats Error - by CutX - 23.12.2013, 17:40
Re: Stats Error - by R4mpage - 23.12.2013, 17:41
Re: Stats Error - by PowerPC603 - 23.12.2013, 17:44

Forum Jump:


Users browsing this thread: 2 Guest(s)