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.
public OnRconLoginAttempt(ip[], password[], success)
{
new IP[ 16 ];
if( !success )
{
for( new playerid; playerid <= MAX_PLAYERS; playerid++ )
{
GetPlayerIp( playerid, IP, sizeof( IP ) );
if( !strcmp( ip, IP, true ) )
{
SendClientMessage( playerid, Vermelho, "[RCON] Senha errada, se errar 3 vezes serб banido!" );
SetPVarInt( playerid, "kTent", GetPVarInt( playerid, "kTent" ) + 1 ) ;
if( GetPVarInt( playerid, "kTent" ) == 3 )
return Ban( playerid );
}
}
}
return true;
}
Esse cуdigo foi feito por mim, e o erro й ter "sucess" e o certo й "sucess", enganei-me na altura.
|
Esse cуdigo foi feito por mim, e o erro й ter "sucess" e o certo й "sucess", enganei-me na altura.
PHP код:
|
C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(4906) : error 017: undefined symbol "SetPVarInt" C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(4908) : error 017: undefined symbol "GetPVarInt" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
#include <a_players>
native SetPVarInt(playerid, varname[], int_value);
native GetPVarInt(playerid, varname[]);
coloque no GM
pawn Код:
|