Create3DTextLabel
#1

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

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)