SA-MP Forums Archive
[Ajuda] AntFlod - 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] AntFlod (/showthread.php?tid=402435)



AntFlod - Mteck - 26.12.2012

Linha do Erro:
pawn Код:
if(Flood[playerid] < gettime()) return SendClientMessage(playerid, -1, "Aguarde "FLOOD_SEGUNDOS" segundos.");

Erros:
pawn Код:
C:\Users\Richard\Desktop\GameMode_Bloody_Vegas_-_Striker_Samp\[GameMode] Bloody Vegas - Striker Samp\Bloody Vegas - Striker Samp\gamemodes\E.z.pwn(5579) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Richard\Desktop\GameMode_Bloody_Vegas_-_Striker_Samp\[GameMode] Bloody Vegas - Striker Samp\Bloody Vegas - Striker Samp\gamemodes\E.z.pwn(5579) : warning 215: expression has no effect
C:\Users\Richard\Desktop\GameMode_Bloody_Vegas_-_Striker_Samp\[GameMode] Bloody Vegas - Striker Samp\Bloody Vegas - Striker Samp\gamemodes\E.z.pwn(5579) : error 001: expected token: ";", but found "-string-"
C:\Users\Richard\Desktop\GameMode_Bloody_Vegas_-_Striker_Samp\[GameMode] Bloody Vegas - Striker Samp\Bloody Vegas - Striker Samp\gamemodes\E.z.pwn(5579) : warning 215: expression has no effect
C:\Users\Richard\Desktop\GameMode_Bloody_Vegas_-_Striker_Samp\[GameMode] Bloody Vegas - Striker Samp\Bloody Vegas - Striker Samp\gamemodes\E.z.pwn(5579) : error 001: expected token: ";", but found ")"
C:\Users\Richard\Desktop\GameMode_Bloody_Vegas_-_Striker_Samp\[GameMode] Bloody Vegas - Striker Samp\Bloody Vegas - Striker Samp\gamemodes\E.z.pwn(5579) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.



Re: AntFlod - Gleisson_. - 26.12.2012

pawn Код:
if(Flood[playerid] < gettime()) return SendClientMessage(playerid, -1, "Aguarde %d segundos.", FLOOD_SEGUNDOS);



Re: AntFlod - EditPawn - 26.12.2012

Quote:
Originally Posted by Gleisson_.
Посмотреть сообщение
pawn Код:
if(Flood[playerid] < gettime()) return SendClientMessage(playerid, -1, "Aguarde %d segundos.", FLOOD_SEGUNDOS);
Nossa --'

Se mate por favor


O certo:
pawn Код:
if(Flood[playerid] < gettime())
{
    static Str[30];
    format(Str, sizeof(Str), "Aguarde %d Segundos.", FLOOD_SEGUNDOS);
    SendClientMessage(playerid, -1, Str);
    return true;
}



Re: AntFlod - Gleisson_. - 26.12.2012

Quote:
Originally Posted by EditPawn
Посмотреть сообщение
Nossa --'

Se mate por favor


O certo:
pawn Код:
if(Flood[playerid] < gettime())
{
    static Str[30];
    format(Str, sizeof(Str), "Aguarde %d Segundos.", FLOOD_SEGUNDOS);
    SendClientMessage(playerid, -1, Str);
    return true;
}
Nгo prestei atenзгo.. , tava em um site aqui.