[AJUDA] warning 213: tag mismatch
#1

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 !
Reply
#2

Com toda a certeza vocк nгo deve ter definido o ESCx, ESCy como uma float.
Reply
#3

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 !
Reply
#4

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.
Reply
#5

й claro que nгo vai mandar as mensagems, jб existe a rcon command GMX.
Reply
#6

Mas nгo tem como eu editar este comando ou pelo menos adicionar estas mensagens ?

@EDIT

Resolvido. Coloquei no "OnGameModeExit".
Reply
#7

nгo, tem como vocк usar a
pawn Код:
public OnGameModeExit();
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
pawn Код:
SendRconCommand("gmx");
Reply
#8

Ai cara passa o /esc inteiro?

Quero usar vlws ai
Reply
#9

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;
}
Reply
#10

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 []
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)