Code won't work
#1

Hello I'm trying to block a name (of a few) from connecting to my server because it freezes my server and i tried this code but I get errors and idk how to fix them.

Код:
   public OnPlayerConnect(playerid)
   {
       new pName[MAX_PLAYER_NAME];
       GetPlayerName(playerid,pName,sizeof(pName);//probably messed that up bad
       if(pName == "con"){
       Kick(playerid);
       }
       //rest of player connect
       return 1;
}
Errors:

Quote:

C:\Users\Alex\Desktop\HydraX\Stunt Paradise 0.3a\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse
C:\Users\Alex\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(1021) : error 027: invalid character constant
C:\Users\Alex\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(1021) : error 017: undefined symbol "on"
C:\Users\Alex\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(1021 -- 1022) : error 029: invalid expression, assumed zero
C:\Users\Alex\Desktop\Stunt Paradise 0.3a\gamemodes\SP.pwn(1021 -- 1022) : 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
Code won't work - by Bob_Mars - 06.03.2010, 00:08
Re: Code won't work - by Correlli - 06.03.2010, 00:25
Re: Code won't work - by Bob_Mars - 06.03.2010, 00:41
Re: Code won't work - by CJ101 - 06.03.2010, 01:38
Re: Code won't work - by Bob_Mars - 06.03.2010, 02:08

Forum Jump:


Users browsing this thread: 1 Guest(s)