SA-MP Forums Archive
Need Help with Dialog Box! - 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: Need Help with Dialog Box! (/showthread.php?tid=255224)



Need Help with Dialog Box! - Sam789 - 14.05.2011

Hey Guys,

Me and my friend have made a new dialog box that appears on our server on login. We want to know how to make a message box with only one button at the bottom of the box (If that makes sense) However when we click ok to accept the box we get kicked by a default command, does anyone know how to change the command on the button press to proceed to the game!

Thanks Sam789

urbanmfr.dyndns.org:1098
(Testing Filterscripts)


Re: Need Help with Dialog Box! - fiki574 - 14.05.2011

Код:
public OnPlayerConnect
{
     ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"TEXT HERE", "AND MORE TEXT HERE","BUTTON HERE","");
}



Re: Need Help with Dialog Box! - LetsOWN[PL] - 14.05.2011

Quote:

We want to know how to make a message box with only one button at the bottom of the box (If that makes sense)

Eee?

Код:
ShowPlayerDialog(PlayerId, (Dialog ID), DIALOG_STYLE_MSGBOX, "Bla bla", "Oh, this MSGBox have only one button.. Epic", "Exit","");
.. and to let this code workin, you've to use 0.3c ver. of SAMP


Re: Need Help with Dialog Box! - Sam789 - 14.05.2011

arr thanks guys big help