Dialog style?
#5

This is a dialog style that was added in 0.3.7. It's called "DIALOG_STYLE_TABLIST". You can read more about it here: https://sampwiki.blast.hk/wiki/Dialog_Styles

Basically, you are creating a message box that has both columns and rows. \n creates a new row, \t creates a new tab (or indentation / column).

This dialog would have looked similar to this:
PHP код:
ShowPlayerDialog(playerid1,  DIALOG_STYLE_TABLIST"Help Center: General Help",
    
"{FFFF00}Command\tHelp\n\
    {00FF00}/shout\t{FFFFFF}Ability to reach more persons with your character's voice\n\
    {00FF00}/me\t{FFFFFF}Ability to describe your character's movements in depth\n\
    etc."
,
    
"Next""Close"); 
Eventually your compiler will get angry with you when you exceed a certain length, so you're better off creating a large string and using 'strcat' for each line. Note that you cannot have more than 4 columns, so don't use more than 4 "\t"s on a single line.

An example can also be found on the Dialog Styles wiki page, with pictures included.
Reply


Messages In This Thread
Dialog style? - by MrCallum - 26.08.2016, 17:11
Re: Dialog style? - by Shinja - 26.08.2016, 17:13
Re: Dialog style? - by MrCallum - 26.08.2016, 17:15
Re: Dialog style? - by DarkSkull - 26.08.2016, 18:09
Re: Dialog style? - by Threshold - 26.08.2016, 18:22
Re: Dialog style? - by DeeadPool - 26.08.2016, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)