SA-MP Forums Archive
Please Help me How to add Multi Colours On 3D Text Labels - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Please Help me How to add Multi Colours On 3D Text Labels (/showthread.php?tid=326443)



Please Help me How to add Multi Colours On 3D Text Labels - fadhilkab - 17.03.2012

Hello Guys I needed to Add Multicolours on 3d Text labels

Код:
bizTextInfo[bizid] = Text3D:INVALID_3DTEXT_ID;
				new bizowner[25];
				format(bizowner,128,"%s",BizInfo[bizid][owner]);
				if(strcmp(BizInfo[bizid][owner],DEFAULT_OWNER,false) == 0) {
			    	format(bizowner,128,"For Sale");
			 		bizTextInfo[bizid] = CreateDynamic3DTextLabel(bizowner,0x00FF00FF,floatstr(SplitDiv[0]),floatstr(SplitDiv[1]),floatstr(SplitDiv[2])+0.75,40);
				}
				else {
			 		bizTextInfo[bizid] = CreateDynamic3DTextLabel(bizowner,0xFF0000FF,floatstr(SplitDiv[0]),floatstr(SplitDiv[1]),floatstr(SplitDiv[2])+0.75,40);
			 	}



Re: Please Help me How to add Multi Colours On 3D Text Labels - Issam - 17.03.2012

Quote:
Originally Posted by fadhilkab
Посмотреть сообщение
Hello Guys I needed to Add Multicolours on 3d Text labels

Код:
bizTextInfo[bizid] = Text3D:INVALID_3DTEXT_ID;
				new bizowner[25];
				format(bizowner,128,"%s",BizInfo[bizid][owner]);
				if(strcmp(BizInfo[bizid][owner],DEFAULT_OWNER,false) == 0) {
			    	format(bizowner,128,"For Sale");
			 		bizTextInfo[bizid] = CreateDynamic3DTextLabel(bizowner,0x00FF00FF,floatstr(SplitDiv[0]),floatstr(SplitDiv[1]),floatstr(SplitDiv[2])+0.75,40);
				}
				else {
			 		bizTextInfo[bizid] = CreateDynamic3DTextLabel(bizowner,0xFF0000FF,floatstr(SplitDiv[0]),floatstr(SplitDiv[1]),floatstr(SplitDiv[2])+0.75,40);
			 	}
Try using a string.
Look here: https://sampwiki.blast.hk/wiki/Create3DTextLabel


Re: Please Help me How to add Multi Colours On 3D Text Labels - fadhilkab - 17.03.2012

Quote:
Originally Posted by Issam
Посмотреть сообщение
Can u do it with the pawn Code please.I would REP+ You