SA-MP Forums Archive
Dialog question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog question (/showthread.php?tid=256163)



Dialog question - StilThere - 19.05.2011

Hi all, is it possible that during a player is looking through a dialog, certain actions will be performed?

For example if your dialog goes like this:
Код:
Spoiler 1
Spoiler 2
Spoiler 3
OK   Cancel
Can you make a function that when Spoiler 2 is selected with arrow down, but you haven't pressed OK yet, you will let a SendClientMessage(...) be called?


Re: Dialog question - Sid_Alexander - 19.05.2011

Quote:
Originally Posted by StilThere
Посмотреть сообщение
Hi all, is it possible that during a player is looking through a dialog, certain actions will be performed?

For example if your dialog goes like this:
Код:
Spoiler 1
Spoiler 2
Spoiler 3
OK   Cancel
Can you make a function that when Spoiler 2 is selected with arrow down, but you haven't pressed OK yet, you will let a SendClientMessage(...) be called?
I didn't understand, explain more


Re: Dialog question - MadeMan - 19.05.2011

No, only callback for dialogs is OnDialogResponse and it gets called only when player presses the button.


Re: Dialog question - StilThere - 19.05.2011

Quote:
Originally Posted by Sid_Alexander
Посмотреть сообщение
I didn't understand, explain more
You can select a listitem in a dialog, and before you press it it becomes this red color, I wanted to know if you could let a function be called on that moment, but you can't.

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
No, only callback for dialogs is OnDialogResponse and it gets called only when player presses the button.
Allrighty, thank you.