SA-MP Forums Archive
[AJUDA]Anti-divulguer - 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]Anti-divulguer (/showthread.php?tid=285642)



[AJUDA]Anti-divulguer - year_Stracci - 25.09.2011

Ola, Preciso de ajuda com o anti-divulguer do Ricop522 siguente fiz tudo certio que ele pediu na hora de copila nem copila da erro no copilador codigos esta aqui embaixo


Quote:

stock checaDivulguer(playerid, texto[]) {
new ccount[3];
for(new i; i < strlen(texto); ++i) switch(texto[i]) {
case '0' .. '9': ccount[0]++; case '.': ccount[1]++; case ':': ccount[2]++;
}
new string[128];
if(ccount[0] > 8 && ccount[1] >= 3 && ccount[2] >= 1) {
format(string,sizeof(string),"[ antiDivulgadores ] %s foi banido por divulgar.", rNome(playerid));
BanEx(playerid, texto);
SendClientMessageToAll(string, -1);
}
return 1;
}

stock rNome(playerid) {
new nome[24]; GetPlayerName(playerid, nome, 24); return nome;
}

Quote:

public OnPlayerText(playerid, text[]) {
checaDivulguer(playerid, text)
}

PROVAVELMENTE DEVE SER ERROGS NAS CHAVES DO CODIGO checaDivulguer(playerid, text)
}


Re: [AJUDA]ANTI-DIVULGUER[AJUDA] - Dolby - 25.09.2011

use apenas um
[ Pawn ] e [ /pawn ]
..e poste os erros que estao dando.


Re: [AJUDA]ANTI-DIVULGUER[AJUDA] - Dr_Pawno - 25.09.2011

usa o meu

pawn Код:
if(strfind(text, ".", true) != -1)
    {
        if(strfind(text, ":", true) != -1)
        {
            SendClientMessage(playerid, -1, "Nгo foi permitido o envio desta frase.");
            return 0;
        }
    }



Re: [AJUDA]ANTI-DIVULGUER[AJUDA] - Hardware - 25.09.2011

Mostre as linhas dos erros.


Re: [AJUDA]ANTI-DIVULGUER[AJUDA] - year_Stracci - 25.09.2011

esta dando erro no copilador o pawn nem consegui ver os erros.


Re: [AJUDA]ANTI-DIVULGUER[AJUDA] - Dr_Pawno - 25.09.2011

Й por falta de chaves que o erro esta ocorrendo. Cheque o cуdigo e cheque as chaves.


Re: [AJUDA]ANTI-DIVULGUER[AJUDA] - [NWD]Jim._.Carrey - 25.09.2011

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Nгo deu erro algum aqui.


Re: [AJUDA]ANTI-DIVULGUER[AJUDA] - year_Stracci - 25.09.2011

Dr_Pawno tem como fazer um tuturail do seu codigo de anti-divulguer masi quando o cara digita nao aprecer
Nгo foi permitido o envio desta frase. e dar um kick na pessoal com essa mensagen

pawn Код:
format(string,sizeof(string),"[ antiDivulgadores ] %s foi banido por divulgar.", rNome(playerid));
        Kick(playerid);
        SendClientMessageToAll(string, -1);



Re: [AJUDA]ANTI-DIVULGUER[AJUDA] - Dolby - 25.09.2011

pawn Код:
stock checaDivulguer(playerid, texto[])
{
new ccount[3];
for(new i; i < strlen(texto); ++i) switch(texto[i])
{
case '0' .. '9': ccount[0]++; case '.': ccount[1]++; case ':': ccount[2]++;
}
new string[128];
if(ccount[0] > 8 && ccount[1] >= 3 && ccount[2] >= 1)
{
format(string,sizeof(string),"[ antiDivulgadores ] %s foi banido por divulgar.", rNome(playerid));
BanEx(playerid, texto);
SendClientMessageToAll(string, -1);
}
return 1;
}
stock rNome(playerid)
{
new nome[24];
GetPlayerName(playerid, nome, 24);
return nome;
}
public OnPlayerText(playerid, text[])
{
checaDivulguer(playerid, text);
return 1;
}
Editei denovo ai..pega esse ai agora e tenta.


Re: [AJUDA]ANTI-DIVULGUER[AJUDA] - year_Stracci - 25.09.2011

Gustavo nem deu mesmo erro. que ta dando o copilador nem motra a tabela de erros da um bagulho sinitro