15.08.2009, 04:37
Remove the forward.
pawn Код:
if (strcmp("/stats", cmdtext, true) == 0)
{
if(logged[playerid]) ShowStats(playerid,playerid);
return 1;
}
pawn Код:
stock ShowStats(playerid,targetid)
{
new string[128];
SendClientMessage(playerid, COLOR_LIGHTBLUE, "_____________________________________");
SendClientMessage(playerid, COLOR_GRAY,playername);//playername
format(string, sizeof(string),"Kills:%i Deaths:%i Level:%i Team/Faction:%i",PlayerInfo[targetid][pKills],PlayerInfo[targetid][pDeaths],PlayerInfo[targetid][pLevel],PlayerInfo[targetid][pTeam]);
SendClientMessage(playerid, COLOR_GRAY,string);//kills deaths etc.
SendClientMessage(playerid, COLOR_LIGHTBLUE, "_____________________________________");
return 1;
}