Couple of 0.3 questions. - 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: Couple of 0.3 questions. (
/showthread.php?tid=102164)
Couple of 0.3 questions. -
Zeromanster - 13.10.2009
Here are my questions:
1. I am using
DIALOG_INPUT_MSGBOX, how do i detect which of the buttons player pressed ?
2. Can
DIALOG_INPUT_MSGBOX have more than 2 buttons ?
Thank you for you anwers.
Re: Couple of 0.3 questions. -
BlackFoX - 13.10.2009
Look @ Wiki , there you can find more
and no i think you cant have more than 2 Buttons ^^
Re: Couple of 0.3 questions. -
Mikep. - 13.10.2009
Use the 'response' parameter in the OnDialogResponse callback to determine what button they pressed. If response is 0 they pressed the first button, if it's 1 they pressed the second.
You can only have 2 buttons per dialog.
Re: Couple of 0.3 questions. -
Zeromanster - 13.10.2009
Thanks Mikep.
Re: Couple of 0.3 questions. -
8D. - 13.10.2009
Better to say.
If they pressed the right button response == 0
If they pressed the left on repsonse == 1
Re: Couple of 0.3 questions. -
Abhishek - 14.10.2009
Quote:
Originally Posted by Mikep.
Use the 'response' parameter in the OnDialogResponse callback to determine what button they pressed. If response is 0 they pressed the first button, if it's 1 they pressed the second.
You can only have 2 buttons per dialog.
|
that's wrong
Quote:
Originally Posted by 8D.
Better to say.
If they pressed the right button response == 0
If they pressed the left on repsonse == 1
|
That's correct