28.02.2018, 11:26
Код:
if(PlayerPBing[killerid] == true)
{
new string[128], string2[128], pName[MAX_PLAYER_NAME]; Line 329
GetPlayerName(killerid, pName, sizeof(pName)); Line 330
PlayerPBKills[killerid]++;
format(string2, sizeof(string2), "Ucideriile tale curente sunt "COLOR_RED" %d", PlayerPBKills[killerid]); Line 332
SendClientMessage(killerid, COLOR_WHITE, string2);
if(PlayerPBKills[killerid] > PBLeaderKills)
{
PBLeaderKills = PlayerPBKills[killerid];
PBLeaderid = killerid;
format(string,sizeof(string),"Player "COLOR_RED"%s(%d) "COLOR_WHITE"este liderul cu "COLOR_RED"%d "COLOR_WHITE"kill's", pName, killerid, PlayerPBKills[killerid]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerPBing[i] == true)
{
SendClientMessage(i, COLOR_WHITE, string);
}
}
}
}
return 1;
}
Код:
(329) : warning 219: local variable "pName" shadows a variable at a preceding level (330) : error 035: argument type mismatch (argument 2) (330) : error 035: argument type mismatch (argument 2) (332) : error 001: expected token: "-string end-", but found "-identifier-" (332) : warning 215: expression has no effect (332) : error 001: expected token: ";", but found "-string-" (332) : warning 215: expression has no effect (332) : warning 215: expression has no effect (332) : error 001: expected token: ";", but found ")" (332) : fatal error 107: too many error messages on one line


