29.08.2013, 18:46
Meu server ele, ban pelo nick, e o IP nгo й banido, eu fiz um code pra banir o IP, na hora de o player logar no server e fazer a checagem de IP o code nгo funfa, alguйm pode ajudar?
ERROS:
D:\Users\-------\Desktop\-------\gamemodes\-------.pwn(1547) : error 012: invalid function call, not a valid address
D:\Users\-------\Desktop-------\gamemodes\-------.pwn(1547) : warning 215: expression has no effect
D:\Users\-------\Desktop\-------\gamemodes\-------.pwn(1547) : error 001: expected token: ";", but found ")"
D:\Users\-------\Desktop\-------\gamemodes\-------.pwn(1547) : error 029: invalid expression, assumed zero
D:\Users\-------\Desktop\-------\gamemodes\-------.pwn(1547) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
todos os erros da linha:
pawn Код:
public OnPlayerConnect(playerid)
{
new antibot[128];
GetPlayerName(playerid, antibot, sizeof(antibot));
if(dini_Int("proibidos.ini", antibot) == 1)
{
new string[128];
format(string, sizeof(string), "(INFO) Vocк foi kickado por estar usando um nick proibido! (%s)", antibot);
SendClientMessage(playerid, 0xFF0000AA, string);
Kick(playerid);
return 1;
}
ResetPlayerWeapons(playerid);
new str[128], conta[128], IP[128], string[256];
if(dini_Int("Banidos.ini", nome(playerid)) == 0){
format(str, sizeof(str), "{EE6363}» {FFFFFF} %s (%d) conectou-se ao servidor", nome(playerid), playerid);
SendClientMessageToAll(0xFFFFFFAA, str);}
if(dini_Int("Banidos.ini", nome(playerid)) == 1){
format(string, sizeof(string), "(BAN) Vocк estб banido do servidor!");
SendClientMessage(playerid, 0xFF0000AA, string);
format(str, sizeof(str), "{EE6363}» {FFFFFF} %s foi banido do servidor por estar com a conta banida.", nome(playerid));
SendClientMessageToAll(0xFFFFFFAA, str);
Kick(playerid); return 1;}
GetPlayerIp(playerid, IP, sizeof(IP));
if(dini_Int("IPsBanidos.ini", IP(playerid)) == 1){
format(string, sizeof(string), "(BAN) Vocк estб banido do servidor!");
SendClientMessage(playerid, 0xFF0000AA, string);
format(str, sizeof(str), "{EE6363}» {FFFFFF} %s foi banido do servidor por estar com a conta banida.", nome(playerid));
SendClientMessageToAll(0xFFFFFFAA, str);
Kick(playerid); return 1;}
ResetPlayerWeapons(playerid);
format(conta, sizeof(conta), DIRETORIO, nome(playerid));
SetPlayerColor(playerid, COR_DESEMPREGADO);
D:\Users\-------\Desktop\-------\gamemodes\-------.pwn(1547) : error 012: invalid function call, not a valid address
D:\Users\-------\Desktop-------\gamemodes\-------.pwn(1547) : warning 215: expression has no effect
D:\Users\-------\Desktop\-------\gamemodes\-------.pwn(1547) : error 001: expected token: ";", but found ")"
D:\Users\-------\Desktop\-------\gamemodes\-------.pwn(1547) : error 029: invalid expression, assumed zero
D:\Users\-------\Desktop\-------\gamemodes\-------.pwn(1547) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
todos os erros da linha:
pawn Код:
if(dini_Int("IPsBanidos.ini", IP(playerid)) == 1){