SA-MP Forums Archive
Create3DTextLabel - 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: Create3DTextLabel (/showthread.php?tid=504933)



Create3DTextLabel - andyandyy8 - 06.04.2014

Hi!
I have a little problem with new line at Create3DTextLabel...
I get data from database:
Quote:

cache_get_field_content(0 ,"Text" , text[tText], conn, 100);
CreateDynamic3DTextLabel(text[tText], 0x09FF00FF,text[textX], text[textY], text[textZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);

"\n" Doesn't work.....
Exemple:
Quote:

{33CC00} Rodeo Dealership {FFFFFF} \n /buyvehicle

It looks like:
Quote:
Rodeo Dealership \n /buyvehicle



Re: Create3DTextLabel - Jstylezzz - 06.04.2014

\n works only in dialogs, as I recall.. Maybe ~n~ works? It might be possible that that only works for textdraws, but you can at least try I guess :P


Re: Create3DTextLabel - andyandyy8 - 06.04.2014

Didn't work. I tried.
If I put the code at OnGameModeInit it works.
Quote:

format(text,sizeof(text),"{33CC00} Rodeo Dealership {FFFFFF} \n /buyvehicle");
CreateDynamic3DTextLabel(text, 0x09FF00FF,333.1782, -1516.4175, 35.8672,25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);

-this works if i put at OnGameModeInit