[Ajuda] Anti Flooder Erros -
[Red]Maninho - 10.08.2011
Eu Baixei Um ANTI FLOOD Aki Do Forum
Tem o Seguinte Aki
PHP код:
public OnPlayerText(playerid, text[])
{
// Is the player flooding?
if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0xFF0000FF, "* You can only send a message once every two seconds.");
return 0;
}
PHP код:
stock IsPlayerFlooding(playerid)
{
if(GetTickCount() - iPlayerChatTime[playerid] < 2000)
return 1;
return 0;
}
Achei Esses 2 Negocios Do FS Que Quero Por No Meu Gamemode
Mais Da Varios Erros Alguem Pode Ajudar a Sulocionar Meus Problemas?
Agradeзo Desde Ja
Re: [Ajuda] Anti Flooder Erros -
Dolby - 10.08.2011
lol,e muito simples,mais quais os Problemas que dao?
Re: [Ajuda] Anti Flooder Erros -
MiTToS - 10.08.2011
PoSta Os ErRoS qUe EsTaO aPaReCeNdO sE nAo, NaO tEm CoMo Te AjUdAr.
Porque escrever tгo complicado? escreve certo, alйm de ser melhor para todos que pretendem te ajudar, estб nas regras do fуrum.
Re: [Ajuda] Anti Flooder Erros - [S]trong - 10.08.2011
pawn Код:
new
IsFlooding[MAX_PLAYERS];
#define IsPlayerFlooding(%0) IsFlooding[%0] > gettime()
public OnPlayerText(playerid, text[])
{
if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0xFF0000FF, "* You can only send a message once every two seconds.");
return 0;
}
else
{
IsFlooding[playerid] = gettime()+2;
return 1;
}
return 0;
}
.
Respuesta: [Ajuda] Anti Flooder Erros -
[Red]Maninho - 10.08.2011
[S]trong Seu Codigo Deu Os Mesmos Erros Do Outro
o Erro Do Que Eu Tinha Era Esse e Do Codigo Do [S]trong Tbm
PHP код:
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\pawno\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\pawno\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\pawno\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\pawno\include\dutils.inc(267) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\pawno\include\dutils.inc(286) : warning 219: local variable "i" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\pawno\include\dutils.inc(324) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\pawno\include\dutils.inc(343) : warning 219: local variable "i" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\pawno\include\dutils.inc(366) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\pawno\include\dutils.inc(452) : warning 219: local variable "i" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(372) : warning 219: local variable "i" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(547) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(1291) : warning 219: local variable "i" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(1296) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(1307) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(1319) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(1331) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(1343) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(1355) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(2426) : warning 219: local variable "i" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(2482) : warning 219: local variable "i" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(2505) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(2701) : warning 219: local variable "i" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3093) : warning 219: local variable "X" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3093) : warning 219: local variable "Y" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3093) : warning 219: local variable "Z" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3131) : warning 219: local variable "aname" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3175) : warning 219: local variable "aname" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3199) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3292) : warning 219: local variable "aname" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3341) : warning 219: local variable "aname" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3346) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3359) : warning 219: local variable "X" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3359) : warning 219: local variable "Y" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3359) : warning 219: local variable "Z" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3378) : warning 219: local variable "i" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3407) : warning 219: local variable "i" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3421) : warning 219: local variable "aname" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3478) : warning 219: local variable "X" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3478) : warning 219: local variable "Y" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3478) : warning 219: local variable "Z" shadows a variable at a preceding level
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3599) : error 017: undefined symbol "IsPlayerFlooding"
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3609) : warning 225: unreachable code
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3612) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3620) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3622) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3629) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3632) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3636) : error 021: symbol already defined: "GetPlayerName"
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3638) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3641) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3644) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3646) : error 021: symbol already defined: "SendClientMessage"
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3650) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3652) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3658) : error 021: symbol already defined: "string"
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3662) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3668) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3670) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3674) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3680) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3682) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3683) : error 021: symbol already defined: "string"
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3686) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3688) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3689) : error 021: symbol already defined: "string"
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3692) : error 010: invalid function or declaration
D:\Arquivos Maninho\• Brasil • [RedBull®] • RPG™ • v1.6 •\gamemodes\RedBull.pwn(3694) : error 010: invalid function or declaration
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Re: [Ajuda] Anti Flooder Erros - [S]trong - 10.08.2011
Cara vocк abriu alguma chave e nгo a fechou. Me posta a sua callback OnPlayerText.
Respuesta: [Ajuda] Anti Flooder Erros -
[Red]Maninho - 10.08.2011
Coloquei Seu Codigo Deu Erros
PHP код:
new IsFlooding[MAX_PLAYERS]; #define IsPlayerFlooding(%0) IsFlooding[%0] > gettime()public OnPlayerText(playerid, text[]){ if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid)) { SendClientMessage(playerid, 0xFF0000FF, "* You can only send a message once every two seconds."); return 0; } else { IsFlooding[playerid] = gettime()+2; return 1; } return 0;}
Re: [Ajuda] Anti Flooder Erros -
RockFire - 10.08.2011
Nгo й pra por tudo junto na mesma linha
Re: [Ajuda] Anti Flooder Erros - [S]trong - 10.08.2011
Quote:
Originally Posted by RockFire
Nгo й pra por tudo junto na mesma linha
|
Й isto que o manolo falou, copia o cуdigo da forma que eu postei, se estiver no internet explorer me da "quote" e copia o cуdigo por lб. E cara se vocк jб estiver usando a OnPlayerText coloque o cуdigo que estб na OnPlayerText dentro da callback OnPlayerText.
Meu cуdigo nгo tem erros meu caro, й sу saber colocar eles nos lugares certos
Respuesta: [Ajuda] Anti Flooder Erros -
[Red]Maninho - 10.08.2011
Me Chamando De Burro Ashuashuashua
PHP код:
//Topo Gamemode
new IsFlooding[MAX_PLAYERS];
//public OnPlayerText(playerid, text[])
//{
if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0xFF0000FF, "* You can only send a message once every two seconds.");
return 0;
}
else
{
IsFlooding[playerid] = gettime()+2;
return 1;
}
return 0;
}
Nao Esta Certo?