SA-MP Forums Archive
ShowPlayerDialog Color is Messed - 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: ShowPlayerDialog Color is Messed (/showthread.php?tid=633043)



ShowPlayerDialog Color is Messed - Sc0pion - 24.04.2017

Fixed!


Re: ShowPlayerDialog Color is Messed - iGetty - 24.04.2017

Show us your colour defines please.


Re: ShowPlayerDialog Color is Messed - Sc0pion - 24.04.2017

Fixed!


Re: ShowPlayerDialog Color is Messed - fuckingcruse - 24.04.2017

Quote:
Originally Posted by Sc0pion
Посмотреть сообщение
Код:
#define COL_GREY                            "{C3C3C3}"
#define COL_ORANGE                          "{FF8000}"
#define COL_RED                             "{FF0000}"
#define COL_YELLOW                          "{FFFF00}"
#define COL_GREEN                           "{33CC33}"
#define COL_LIME 			    "{B7FF00}"
#define COL_WHITE 			    "{FFFFFF}"
#define COL_CYAN 			    "{00FFEE}"
#define COL_BLUE 			    "{0049FF}"
It looks fine, once try just the colors not the define after number 6). Then if it doesn't work post here again.


Re: ShowPlayerDialog Color is Messed - Sc0pion - 24.04.2017

Fixed!


Re: ShowPlayerDialog Color is Messed - Vince - 24.04.2017

Open the file in an editor that can display special characters like Notepad++. I've seen glitching like that before but it usually happens because of foreign character sets that needs more (storage) space (Thai, Arabic, etc.).

Also pro tip: you can inline your yes/no like this:
PHP код:
format(stringsizeof(string), ""COL_YELLOW"4) "COL_WHITE"Require Register - "COL_LIME" %s.\n"ServerInfo[RequireRegister] ? ("Yes") : ("No")); 



Re: ShowPlayerDialog Color is Messed - Sc0pion - 25.04.2017

Fixed!


Re: ShowPlayerDialog Color is Messed - Vince - 25.04.2017

Well, no, opening the file is not enough but it will show you those hidden characters (in NP++: View > Non-Printable Characters > Show All Characters) that Pawno doesn't show you and you will be able to delete them there.