Dialog Help - 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 Help (
/showthread.php?tid=253311)
Dialog Help -
Janek17 - 05.05.2011
Hey all sa-mp members!
Please tell me how do make dialog "DIALOG_STYLE_MSGBOX "
Like this
Someting here
Somethig here
Somethig here
Re: Dialog Help -
Fj0rtizFredde - 05.05.2011
You use \n to get a new line. Like this:
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Something", "Something Here\nSomething Here\nSomething Here", "Ok","Cancel");
Re: Dialog Help -
Janek17 - 05.05.2011
Oh tnks dud!
But how do remove the "OK" button?
Re: Dialog Help -
Fj0rtizFredde - 05.05.2011
You put Cancel where it says Ok (first button) and remove the second button (You put "" at the end)
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Something", "Something Here\nSomething Here\nSomething Here", "Cancel","");
Re: Dialog Help -
Janek17 - 05.05.2011
Tnks alot!
Re: Dialog Help -
Janek17 - 05.05.2011
But what i but in "OnDialogResponse" :S
He say when i press "Cansel" i buy a food!
Re: Dialog Help -
Tommy_Mandaz - 05.05.2011
if(!response)
Re: Dialog Help -
grand.Theft.Otto - 05.05.2011
"Button 1","Button2");
- Button 1 = True value
- Button 2 = False value
Therefore, button 1 is meant for something like Buy, OK, Agree, Yes while button 2 is meant for something like Cancel, Disagree, No, Exit
Try putting Cancel into the 2nd set of quotes and Buy in the 1st set.
Also add:
pawn Код:
if(dialogid==Dialogonclick){ if(!response){return 0;}/* <= EXIT Button*/}
This will help you too
https://sampwiki.blast.hk/wiki/ShowPlayerDialog