Please Help me How to add Multi Colours On 3D Text Labels
#1

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);
			 	}
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)