SA-MP Forums Archive
How to added color in dialog list on dialog respone - 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 to added color in dialog list on dialog respone (/showthread.php?tid=609934)



How to added color in dialog list on dialog respone - Rasyidmf - 18.06.2016

How to added color in dialog list on dialog respone ?

when i added color "colorred" its crash ( i mean cant compline)
when i added color "{B90000} its crash too

so please help me !


Re: How to added color in dialog list on dialog respone - DTV - 18.06.2016

How does it crash? Does it return a error in compiling?


Re: How to added color in dialog list on dialog respone - Sew_Sumi - 18.06.2016

Show your code.


Re: How to added color in dialog list on dialog respone - Rasyidmf - 19.06.2016

ShowPlayerDialog(playerid, 30, DIALOG_STYLE_LIST, "Senjata", "M4 - "cblue"8000$\nAK47 - "cblue"8000$\nMP5 - "cblue"6000$\nUZI - "cblue"12000$\nCombat Shotgun - "cblue"10000$\nShotgun - "cblue"5000$\nDesert Eagle - "cblue"6000$\nSilent Pistol - "cblue"3000$\nPistol - "cblue"3000$", "Buy", "Exit");


Re: How to added color in dialog list on dialog respone - ChristolisTV - 19.06.2016

Can you show us your log?


Re: How to added color in dialog list on dialog respone - J4Rr3x - 19.06.2016

Quote:
Originally Posted by Rasyidmf
Посмотреть сообщение
ShowPlayerDialog(playerid, 30, DIALOG_STYLE_LIST, "Senjata", "M4 - "cblue"8000$\nAK47 - "cblue"8000$\nMP5 - "cblue"6000$\nUZI - "cblue"12000$\nCombat Shotgun - "cblue"10000$\nShotgun - "cblue"5000$\nDesert Eagle - "cblue"6000$\nSilent Pistol - "cblue"3000$\nPistol - "cblue"3000$", "Buy", "Exit");
Have you defined "cblue" as #define cblue (FFFFFF)? Instead of FFFFFF you need to put your six letters/numbers of colors beetween 0x and last two character


Re: How to added color in dialog list on dialog respone - Sjn - 19.06.2016

Quote:
Originally Posted by J4Rr3x
Посмотреть сообщение
Have you defined "cblue" as #define cblue (FFFFFF)? Instead of FFFFFF you need to put your six letters/numbers of colors beetween 0x and last two character
A little correction; #define cblue "{colorcode}" and to add inside a string; "#cblue"