Hack Ke apaga el Server
#4

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
Agrega este codigo dentro de tu GM (deberia ser antes de cualquier callback):

pawn Код:
#define INVALID_DIALOG_ID       (-1)

new CurrentDialog[MAX_PLAYERS];

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

public OnPlayerConnect(playerid)
{
    CurrentDialog[playerid] = INVALID_DIALOG_ID;
    if(funcidx("_OnPlayerConnect") != -1)
        return CallLocalFunction("_OnPlayerConnect", "i", playerid);
    return 1;
}
#if defined _ALS_OnPlayerConnect
#undef OnPlayerConnect
#else
    #define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect _OnPlayerConnect
forward public _OnPlayerConnect(playerid);

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(CurrentDialog[playerid] != dialogid)
    {
        BanEx(playerid, "Dialog hacking");
        return 1;
    }
    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[]);
Me sale este error:

C:\Users\Luis Loor\Desktop\Pawno\XtreamFree\gamemodes\XtreamFree .pwn(553) : error 035: argument type mismatch (argument 1)

En la lнnea 553 tengo esto:

return ShowPlayerDialog((playerid, dialogid, style, caption, info, button1, button2);

Algo hice mal?
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: 2 Guest(s)