SA-MP Forums Archive
Dialog Colouring .. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dialog Colouring .. (/showthread.php?tid=194219)



Dialog Colouring .. - NewYorkRP - 28.11.2010

Код:
ShowPlayerDialog(playerid,225,DIALOG_STYLE_LIST,"Vehicle Dealership","Clover		{00CC66}$40,000\nMower		{00CC66}$12,000\nTractor		{00CC66}$20,000\nFaggio		{00CC66}$15,000\nWayfarer	{00CC66}$20,000\nBF-400		{00CC66}$55,000\nFreeway	{00CC66}$45,000\nQuad		{00CC66}$40,000\nSentinel	{00CC66}$45,000\nStretch		{00CC66}$50,000\nVoodoo		{00CC66}$45,000\nTaxi		{00CC66}$45,000\nCabbie		{00CC66}$40,000\nPremier	{00CC66}$46,000\nWashington	       {00CC66}$55,000\nBuffalo		{00CC66}$50,000\nBanshee	 {00CC66}$900,000\nHotknife	  {00CC66}$130,000\nRomero	{00CC66}$38,000\nAdmiral		{00CC66}$39,000\nNext","Proceed","Cancel");
This works fine without the colours.

I tried it with only 1 colour, to the first one, : It worked.

I then tried to add it to all of them, and my pawno crashes when i try to compile.


Is there a limit on how many colours your aloud?


Re: Dialog Colouring .. - Zh3r0 - 28.11.2010

Quote:
Originally Posted by NewYorkRP
Посмотреть сообщение
Код:
ShowPlayerDialog(playerid,225,DIALOG_STYLE_LIST,"Vehicle Dealership","Clover		{00CC66}$40,000\nMower		{00CC66}$12,000\nTractor		{00CC66}$20,000\nFaggio		{00CC66}$15,000\nWayfarer	{00CC66}$20,000\nBF-400		{00CC66}$55,000\nFreeway	{00CC66}$45,000\nQuad		{00CC66}$40,000\nSentinel	{00CC66}$45,000\nStretch		{00CC66}$50,000\nVoodoo		{00CC66}$45,000\nTaxi		{00CC66}$45,000\nCabbie		{00CC66}$40,000\nPremier	{00CC66}$46,000\nWashington	       {00CC66}$55,000\nBuffalo		{00CC66}$50,000\nBanshee	 {00CC66}$900,000\nHotknife	  {00CC66}$130,000\nRomero	{00CC66}$38,000\nAdmiral		{00CC66}$39,000\nNext","Proceed","Cancel");
This works fine without the colours.

I tried it with only 1 colour, to the first one, : It worked.

I then tried to add it to all of them, and my pawno crashes when i try to compile.


Is there a limit on how many colours your aloud?
It has crashed because string may be too long!

format it into pieces.


Re: Dialog Colouring .. - Flyfishes - 28.11.2010

I don't think so!


Re: Dialog Colouring .. - ben4uka - 28.11.2010

mabye you have one more return 1; more then need .. (?)


Re: Dialog Colouring .. - NewYorkRP - 28.11.2010

No, it works perfectly fine WITHOUT the colours.


Re: Dialog Colouring .. - wups - 28.11.2010

your string is too long WITH the colors