23.10.2014, 16:22
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(!success)
{
printf("Failed rcon by IP %s used password %s", ip,password);
new pip[16]
new pname[+1MAX_PLAYER_PLAYER], string[+256MAX_PLAYER_NAME];//<<<|This line
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string), "{FF0000}[SERVER]{FFFFFF}: {FF0000}%s Has been banned for rcon login attempt",pname");
SendClientMessageToAll(0xFFFFFFF, string);
for(new i=0; i<MAX_PLAYERS; i++)
{
GetPlayerIp(i, pip,sizeof(pip));
if(!strcmp(ip,pip, true))
{
ShowPlayerDialog(playerid, 431, DIALOG_STYLE_MSGBOX, "Banned", "You have been banned for rcon login attempt\r\nIf you wanna be unbanned make a ban appeal at www.lscnr-samp.tk");
Ban(i);
}
}
}
return 1;
}
Код:
C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(624) : error 001: expected token: ";", but found "new" C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(624) : error 029: invalid expression, assumed zero C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(624) : error 029: invalid expression, assumed zero C:\Users\yan\Desktop\Cops And Robbers\gamemodes\LSCNR.pwn(624) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.