How do you center text in a dialog?
#1

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 "
Reply
#2

Show your code, Dear
Reply
#3

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
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)