24.04.2012, 16:15
Код:
C:\Users\Luke\Downloads\tmp_fm_agame2 (1).pwn(439) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Luke\Downloads\tmp_fm_agame2 (1).pwn(439) : error 029: invalid expression, assumed zero C:\Users\Luke\Downloads\tmp_fm_agame2 (1).pwn(439) : error 029: invalid expression, assumed zero
Код:
CMD:stats(playerid, params[])
{
new string[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string, sizeof(string), "Statistics: %s", pName);
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "[Stats]": PlayingHours: %s Kills: %i Deaths: %i Score: %i AdminLevel: %s VIPLevel: %s",PlayerInfo[playerid][pPlayingTime], PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pScore]);
SendClientMessage(playerid, COLOR_ORANGE, string);
return 1;
}
Код:
format(string, sizeof(string), "[Stats]": PlayingHours: %s Kills: %i Deaths: %i Score: %i AdminLevel: %s VIPLevel: %s",PlayerInfo[playerid][pPlayingTime], PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pScore]);


