[Include] GUIS - Prevent people from hacking your server (Updated v1.2)
#10

There is no point in the include then, as it breaks the functionality of dialog callbacks.
If you put this include in a script, it will not work, because Filterscript's OnDialogResponse will not be called.

Solution:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
    new server_dialogid = GetPVarInt(playerid, "GUIS_ID");
    if(server_dialogid != dialogid)
        dialogid = server_dialogid;
    if (funcidx("GUIS_OnDialogResponse") != -1) return CallLocalFunction("GUIS_OnDialogResponse", "dddds",
    playerid, dialogid, response, listitem, inputtext);
    return 0;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)