What did i do wrong
#1

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.
Reply


Messages In This Thread
What did i do wrong - by Glossy42O - 23.10.2014, 16:22
Re: What did i do wrong - by Rudy_ - 23.10.2014, 16:24
Re: What did i do wrong - by Glossy42O - 23.10.2014, 16:25
Re: What did i do wrong - by Rudy_ - 23.10.2014, 16:27
Re: What did i do wrong - by Glossy42O - 23.10.2014, 16:33
Re: What did i do wrong - by Rudy_ - 23.10.2014, 16:39
Re: What did i do wrong - by Glossy42O - 23.10.2014, 16:43
Re: What did i do wrong - by Crazydriver - 23.10.2014, 16:57
Re: What did i do wrong - by Glossy42O - 23.10.2014, 17:10
Re: What did i do wrong - by DavidBilla - 23.10.2014, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)