01.07.2014, 18:42
deu esses erros!
E:\Jogos\desktop pc\new gm zp\gamemodes\GM.pwn(1323) : error 021: symbol already defined: "format"
E:\Jogos\desktop pc\new gm zp\gamemodes\GM.pwn(1325) : error 010: invalid function or declaration
E:\Jogos\desktop pc\new gm zp\gamemodes\GM.pwn(1327) : error 010: invalid function or declaration
onplayertext abaixo:
E:\Jogos\desktop pc\new gm zp\gamemodes\GM.pwn(1323) : error 021: symbol already defined: "format"
E:\Jogos\desktop pc\new gm zp\gamemodes\GM.pwn(1325) : error 010: invalid function or declaration
E:\Jogos\desktop pc\new gm zp\gamemodes\GM.pwn(1327) : error 010: invalid function or declaration
onplayertext abaixo:
pawn Код:
{
if(Flooder[playerid] == 1)
{
SendClientMessage(playerid, -1, "(ANTI - FLOOD) Vocк nгo pode digitar no chat enquanto estiver mutado..");
return 0;
}
IsFlooding[playerid]++;
if(IsFlooding[playerid] >= 3)
{
IsFlooding[playerid] = 0;
Flooder[playerid] = 1;
SendClientMessage(playerid, -1, "(ANTI - FLOOD) Vocк foi mutado por 30 Segundos.");
SetTimerEx("LiberarChat", 30000, false, "i", playerid);
return 0;
}
else
{
SetTimerEx("SemFlood", 2000, false, "i", playerid);
}
return 1;
}
forward SemFlood(playerid);
public SemFlood(playerid)
{
IsFlooding[playerid] = 0;
return 1;
}
forward LiberarChat(playerid);
public LiberarChat(playerid)
{
Flooder[playerid] = 0;
IsFlooding[playerid] = 0;
SendClientMessage(playerid, -1, "( ANTI - FLOOD ) Nгo faзa flood ou vocк pode ser mutado..");
return 1;
}
format(String, sizeof(String), "(id:%d): {FFFFFF}%s",playerid, text);
SendPlayerMessageToAll(playerid, String);
return 0;
}
return 1;
}