SA-MP Forums Archive
How do you center text in a dialog? - 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)
+--- Thread: How do you center text in a dialog? (/showthread.php?tid=639992)



How do you center text in a dialog? - AndreiWow - 26.08.2017

I've tried googling but the only thing that I found was: https://sampforum.blast.hk/showthread.php?tid=625090 why doesn't work.

I put \\c at the begin and in game I see

"\c and my text "


Re: How do you center text in a dialog? - Bingo - 26.08.2017

Show your code, Dear


Re: How do you center text in a dialog? - AndreiWow - 26.08.2017

PHP код:
format(msgsizeof(msg), "\\c{F2C80C}CITIZEN INFORMATION{FFFFFF}\n\n");
Dialog_Show(playeridDIALOG_CITIZEN_SEARCH_SDIALOG_STYLE_MSGBOXtitlemsg"Options""Back"); 
even if I put it on a new line, like in the example, it still doesn't work


Re: How do you center text in a dialog? - Bingo - 26.08.2017

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
PHP код:
format(msgsizeof(msg), "\\c{F2C80C}CITIZEN INFORMATION{FFFFFF}\n\n");
Dialog_Show(playeridDIALOG_CITIZEN_SEARCH_SDIALOG_STYLE_MSGBOXtitlemsg"Options""Back"); 
even if I put it on a new line, like in the example, it still doesn't work
Alright i suppose you're actually using his include tho?

I never tested that include so i don't know how that works, Anyways try to add space between "<sapce>\\c{ as far as i know that the text in dialog can't be aligned but with this include maybe maybe it's possible so try to add space and check.