Dialog doesn't appear - 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 doesn't appear (
/showthread.php?tid=450354)
Dialog doesn't appear -
PRANK - 12.07.2013
Hey! I have got a problem with my dialogs. I'm trying to optimize them to my banking system.
Look at my code:
http://pastebin.com/sD7eJnyQ
The problem is: When i pick up the pickup the first dialog (id:100) appears correctly. But when i choose something in the list nothing happens and the dialog disappears. What should i do? I have tried everything. thanks.
Re: Dialog doesn't appear -
Vexus - 12.07.2013
A: You must return 0; at the end of OnDialogResponse. That might help.
B: You haven't scripted dialog 101 - 103 under OnDialogResponse, that is why it disappears when you click it.
You must set it up to accept an input, that being either an integer or a string.
Hope this guides you to the right area.
Re: Dialog doesn't appear -
PRANK - 12.07.2013
Yeah, it was the A. Thanks.