18.06.2011, 05:02
Entao galerinha eu catei esse code aki pra se errar tres vezes a senha da rcon seria banido! mais deu uns errinho vejam ele ae
й esse ai em cima.. agora veja os erros..
oque eu faзo
Код:
public OnRconLoginAttemp( ip[], password[], sucess ) { if( !sucess ) { new kIP[ 16 ]; for( new playerid; playerid <= MAX_PLAYERS; playerid++ ) { GetPlayerIp( playerid, kIP, sizeof( kIP ) ); if( !strcmp( ip, kIP, true ) ) { SendClientMessage( playerid, -1, "[RCON] Senha errada, se errar 3 vezes serб banido!" ); SetPVarInt( playerid, "kTent", GetPVarInt( playerid, "kTen" ) + 1 ) if( GetPVarInt( playerid, "kTent" ) == 3 ) return Ban( playerid ); } } } return true; }
Код:
C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(4816) : warning 235: public function lacks forward declaration (symbol "OnRconLoginAttemp") C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(4827) : error 017: undefined symbol "SetPVarInt" C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(4829) : error 001: expected token: ";", but found "if" C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(4829) : error 017: undefined symbol "GetPVarInt" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.