[Ajuda] Erro no detectador de bots - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erro no detectador de bots (
/showthread.php?tid=407788)
Erro no detectador de bots -
Pietrotm2012 - 15.01.2013
o Comando em Zcmd:
pawn Код:
CMD:bots(playerid, params[])
{
SendClientMessage(playerid,CorVermelho,"[Detectando...] Procurando Bots...");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new ip[16];
GetPlayerIp(playerid, ip, sizeof(ip));
if(strcmp(ip, "255.255.255.255") == 0)
{
format(string,256,"[Detectado] Bot Detectado! IP: %d",ip);
SendClientMessageToAll(CorVerde,string);
Kick(playerid);
return 0;
}
}
}
return 1;
}
Erros:
pawn Код:
C:\Users\Public\Pietro Publicos\gamemodes\newgm.pwn(207) : error 017: undefined symbol "string"
C:\Users\Public\Pietro Publicos\gamemodes\newgm.pwn(208) : error 017: undefined symbol "string"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Re: Erro no detectador de bots -
Wellington1999 - 15.01.2013
mande as linhas do erro sу as 2
Re: Erro no detectador de bots -
Pietrotm2012 - 15.01.2013
Aqui:
pawn Код:
format(string,256,"[Detectado] Bot Detectado! IP: %d",ip);
SendClientMessageToAll(CorVerde,string);
Re: Erro no detectador de bots -
Wellington1999 - 15.01.2013
vc usa
string ?se nao coloque
str no lugar tentala
Re: Erro no detectador de bots -
Diogo123 - 15.01.2013
coloca new string[75]; no comando '-'
Re: Erro no detectador de bots -
Pietrotm2012 - 15.01.2013
LOL esqueci disso valeu cara

Rep+
Re: Erro no detectador de bots -
Diogo123 - 15.01.2013
Quote:
Originally Posted by Pietrotm2012
LOL esqueci disso valeu cara  Rep+
|
._.'
Re: Erro no detectador de bots -
tonisantolia - 15.01.2013
Quote:
Originally Posted by Wellington1999
vc usa
string ?se nao coloque
str no lugar tentala
|
http://fail.brm.sk/facepalm/epic-facepalm.jpg
@topic
Simples, faltou definir string em uma variavel.
Adcione no comando a seguinte variavel: