Hack Ke apaga el Server
#9

Disculpen, fue mi error no considerar que el script debe ser compatible entre scripts (GM y FS)

Aqui el codigo modificado. Cabe destacar que este codigo debe ir al comienzo del GM (luego de los includes y definiciones, variables, arrays)
pawn Код:
#define INVALID_DIALOG_ID       (-1)

stock _ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[])
{
    SetPVarInt(playerid, "CurrentDialog", dialogid);
    return ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
}
#define ShowPlayerDialog    _ShowPlayerDialog

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(GetPVarInt(playerid, "CurrentDialog") != dialogid)
    {
        BanEx(playerid, "Dialog hacking");
        return 1;
    }
    SetPVarInt(playerid, "CurrentDialog", INVALID_DIALOG_ID);
    if(funcidx("_OnDialogResponse") != -1)
        return CallLocalFunction("_OnDialogResponse", "iiiis", playerid, dialogid, response, listitem, inputtext);
    return 0;
}
#if defined _ALS_OnDialogResponse
#undef OnDialogResponse
#else
    #define _ALS_OnDialogResponse
#endif
#define OnDialogResponse    _OnDialogResponse
forward public _OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
Reply


Messages In This Thread
Hack Ke apaga el Server - by dannypanda05 - 16.09.2012, 23:44
Respuesta: Hack Ke apaga el Server - by -[R]hysi- - 16.09.2012, 23:55
Respuesta: Hack Ke apaga el Server - by TheChaoz - 17.09.2012, 00:06
Respuesta: Hack Ke apaga el Server - by dannypanda05 - 17.09.2012, 00:37
Respuesta: Hack Ke apaga el Server - by Shiny_David - 17.09.2012, 00:48
Respuesta: Hack Ke apaga el Server - by dannypanda05 - 17.09.2012, 01:12
Respuesta: Hack Ke apaga el Server - by Shiny_David - 17.09.2012, 01:30
Respuesta: Hack Ke apaga el Server - by Matyaas - 17.09.2012, 02:52
Respuesta: Hack Ke apaga el Server - by TheChaoz - 17.09.2012, 06:12
Respuesta: Hack Ke apaga el Server - by CJ_Mac - 26.09.2012, 04:14

Forum Jump:


Users browsing this thread: 1 Guest(s)