Filterscript interferes with gamemode - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Filterscript interferes with gamemode (
/showthread.php?tid=613724)
Filterscript interferes with gamemode -
ChristofferHoffmann - 30.07.2016
Hey. I am using Sayros Gate Script, and whenever I use the command /gate which opens the dialogs, it seems that the filterscript dialogs interfer with the dialogs in my gamemode and I am unable to use it properly. What can I do to fix this? It compiles and everything.
Re: Filterscript interferes with gamemode -
wjulien91 - 30.07.2016
Just change filterscript or gamemode dialog id
Re: Filterscript interferes with gamemode -
ChristofferHoffmann - 30.07.2016
But the dialogids are not the same
Re: Filterscript interferes with gamemode -
DarkLouis - 31.07.2016
Show us your code.
Re: Filterscript interferes with gamemode -
ChristofferHoffmann - 01.08.2016
I don't really know what you want me to show. I simply use an entire filterscript that has not been edited, and my gamemode has no issues what so ever. None of the dialogid's are the same between the two.
Re: Filterscript interferes with gamemode -
AndySedeyn - 01.08.2016
Is your OnDialogResponse callback returning 0? If not, it should.
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
return 0; // or: return false;
}
Re: Filterscript interferes with gamemode -
ChristofferHoffmann - 01.08.2016
Quote:
Originally Posted by AndySedeyn
Is your OnDialogResponse callback returning 0? If not, it should.
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
return 0; // or: return false;
}
|
Should that be in both my gamemode and filterscript or only in the filterscript? Both my gamemode and filterscript now returns 0 on OnDialogResponse, but whenever I do /gate it just says "You are already logged in" as it sends the login dialog.
Re: Filterscript interferes with gamemode -
ChristofferHoffmann - 01.08.2016
Solved. Gonna give you all +rep thanks a lot