[AJUDA] warning 213: tag mismatch -
Shadoww5 - 07.05.2011
pawn Код:
if(strcmp(cmd, "/esc", true) == 0)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USO: /esc [playerid/Parte-do-Nick]");
return 1;
}
new gplayerid = ReturnUser(tmp);
new Float:abc[3];
GetPlayerPos(gplayerid, abc[0], abc[1], abc[2]);
SendClientMessage(playerid, COLOR_GREY, " Vocк denunciou alguem por estar de esc.");
ESCx[gplayerid] = abc[0]; //warning 213: tag mismatch
ESCy[gplayerid] = abc[1]; //warning 213: tag mismatch
SetTimerEx("AntiEsc",5000,0,"i",gplayerid);
return 1;
}
Coloquei este codigo ANTI-ESC, criado totalmente por mim. Mas estб dando erro. Quem puder me ajudar, agradeзo !
Re: [AJUDA] warning 213: tag mismatch - [S]trong - 07.05.2011
Com toda a certeza vocк nгo deve ter definido o ESCx, ESCy como uma float.
Re: [AJUDA] warning 213: tag mismatch -
Shadoww5 - 07.05.2011
Aeeeeeeeee, muito obrigado !
Era sу isso mesmo, pois eu tinha colocado assim:
pawn Код:
new ESCx[MAX_PLAYERS] ;
e o correto seria
new Float:ESCx[MAX_PLAYERS];
Valeu !
Re: [AJUDA] warning 213: tag mismatch -
Shadoww5 - 07.05.2011
Fiz isto aqui:
pawn Код:
public OnRconCommand(cmd[])
{
if(strcmp(cmd,"gmx",true))
{
SendClientMessageToAll(COLOR_WHITE, " ");
SendClientMessageToAll(COLOR_YELLOW, "[BRL] O servidor foi reiniciado. Aguarde alguns segundos para entrar novamente!");
SendClientMessageToAll(COLOR_WHITE, " ");
SendClientMessageToAll(COLOR_RED, "[BRL] O servidor foi reiniciado. Aguarde alguns segundos para entrar novamente!");
SendClientMessageToAll(COLOR_WHITE, " ");
SendClientMessageToAll(COLOR_GREEN, "[BRL] O servidor foi reiniciado. Aguarde alguns segundos para entrar novamente!");
SendClientMessageToAll(COLOR_WHITE, " ");
SendClientMessageToAll(BLUE, "[BRL] O servidor foi reiniciado. Aguarde alguns segundos para entrar novamente!");
SendClientMessageToAll(COLOR_WHITE, " ");
GameTextForAll("~g~RE~r~INI~b~CIAN~y~DO ~g~SER~r~VI~b~DOR", 10000, 0);
return 1;
}
return 1;
}
Mas nгo estб funcionando ... Eu digito /rcon gmx, o servidor reinicia, mas nгo mostra as mensagens.
Re: [AJUDA] warning 213: tag mismatch - [S]trong - 07.05.2011
й claro que nгo vai mandar as mensagems, jб existe a rcon command GMX.
Re: [AJUDA] warning 213: tag mismatch -
Shadoww5 - 07.05.2011
Mas nгo tem como eu editar este comando ou pelo menos adicionar estas mensagens ?
@EDIT
Resolvido. Coloquei no "OnGameModeExit".
Re: [AJUDA] warning 213: tag mismatch - [S]trong - 07.05.2011
nгo, tem como vocк usar a
e tambйm vocк pode fazer um comando que mande as mensagems para o server todo e logo apуs ele ъtilize a funзгo
Re: [AJUDA] warning 213: tag mismatch -
Jorge_Hard - 07.05.2011
Ai cara passa o /esc inteiro?

Quero usar vlws ai
Re: [AJUDA] warning 213: tag mismatch - [S]trong - 07.05.2011
pawn Код:
public AntiEsc(playerid)
{
static Float:Float[3];
GetPlayerPos(playerid,Float[0],Float[1],Float[2]);
if(Float[0] == ESCx[playerid] && Float[1] == ESCy[playerid] && Float[2] == ESCz[playerid]) {
SendClientMessage(playerid,0xFFFFFFFF,"Nгo se mecheu manolo entгo foi kickado ue");
Kick(playerid);
}
else {
SendClientMessage(playerid,0xFFFFFFFF,"Se mecheu e o processo foi cancelado.");
}
return true;
}
Re: [AJUDA] warning 213: tag mismatch -
Jorge_Hard - 07.05.2011
Como adiciona uma menssagem nesse comando pra enviar pra pessoa que ta recebendo o esc pra ela se mecher.
Tipo
Alguem te acusou de ESC Voce tem tals segundos para se mecher ou sera kikado
Agradeзo desculpa ta postando em topico nao e meu []