30.05.2013, 07:45
pawn Код:
CMD:stats(playerid,o[])
{
new string[500] , pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
new Float:ratio[MAX_PLAYERS]=PlayerInfo[playerid][pKills]/PlayerInfo[playerid][pDeaths];
format(string,sizeof(string),"-----------------STATS-----------------");
SendClientMessage(playerid, YELLOW,string);
format(string,sizeof(string),"* Stats Of %s *",pName);
SendClientMessage(playerid, BLUE,string);
format(string,sizeof(string),"Password: %s | Cash: %d | Deaths: %d | Kills: %d | Ratio: %d | Score: %d | Admin: %d |",pPass,pCash,pDeaths,pKills,ratio,pScores,pAdminLevel);
SendClientMessage(playerid,BLUE,string);
format(string,sizeof(string),"-----------------STATS-----------------");
SendClientMessage(playerid,YELLOW,string);
return 1;
}
Quote:
error 008: must be a constant expression; assumed zero |