Dialog not working
#8

Quote:
Originally Posted by Zaila
Посмотреть сообщение
If you are using OnDialogResponse in several loaded filterscripts, change 'return 1;' to 'return 0;' in the very end of the callback in every filterscript.

By using 'return 1' in the very end of OnDialogResponse, it will stop checking other filterscripts except of the first loaded with OnDialogResponse, even if the target dialog ID is not inthat script.
Oh lol, I didn't even realise that. Nice spotting. SA-MP wiki and many other scripters would also recommend that you return 0 when using OnDialogResponse.

http://www.wiki.sa-mp.com/wiki/OnDialogResponse
Reply


Messages In This Thread
Dialog not working - by martin149 - 21.08.2012, 11:29
Re: Dialog not working - by clarencecuzz - 21.08.2012, 11:40
Re: Dialog not working - by martin149 - 21.08.2012, 11:53
Re: Dialog not working - by clarencecuzz - 21.08.2012, 11:57
Re: Dialog not working - by martin149 - 21.08.2012, 12:04
Re : Dialog not working - by ricardo178 - 21.08.2012, 12:04
Re: Dialog not working - by Zaila - 21.08.2012, 12:16
Re: Dialog not working - by clarencecuzz - 21.08.2012, 12:27

Forum Jump:


Users browsing this thread: 2 Guest(s)