Help error 01, 029.
#1

Код:
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]);
Please help.
Reply
#2

Replace it with the following code:

Код:
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]);
Reply
#3

Quote:
Originally Posted by sanrock
Посмотреть сообщение
Код:
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]);
Please look at your code before posting..
Here,
Код:
"[Stats]":
You have an extra " after stats.
Reply
#4

Thanks for helping.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)