SA-MP Forums Archive
Dialog boxes arent working - 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: Dialog boxes arent working (/showthread.php?tid=438056)



Dialog boxes arent working - xXitsgodzillaXx - 18.05.2013

Okay so my dialog boxes arent working for some reason none of the IDs are the same. the "return" should be "return 0;" under "ondialogresponse" on my gamemode right? then what should it be for my filterscripts?


Re: Dialog boxes arent working - NL-Sultan - 18.05.2013

If you check the samp wiki tutorial of OnDialogResponse:
pawn Код:
}
        }
        return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
    }
 
    return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}
I think it should be exact the same with filterscripts? Post your code so we can check it ourself.


Re: Dialog boxes arent working - xXitsgodzillaXx - 18.05.2013

Quote:
Originally Posted by NL-Sultan
Посмотреть сообщение
If you check the samp wiki tutorial of OnDialogResponse:
pawn Код:
}
        }
        return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
    }
 
    return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}
I think it should be exact the same with filterscripts? Post your code so we can check it ourself.
Oh god... I'm so oblivious, I had all of my scripts set to "return 1;" on the bottom.


Re: Dialog boxes arent working - NL-Sultan - 18.05.2013

Quote:
Originally Posted by xXitsgodzillaXx
Посмотреть сообщение
Oh god... I'm so oblivious, I had all of my scripts set to "return 1;" on the bottom.
Haha, alright.
I'm glad you fixed it.