3D Label problem
#1

Good day everyone.
Today I have some strange problem. My 3D labels are not showing up. It compiles without any errors, but they are not showing up in game. The problem is not with the streamer, I've updated it and the problem is still there.

Example of a 3d label
pawn Код:
Create3DTextLabel("TEST", COLOR_YELLOW, 859.9612, -604.4937, 18.4219, 100.0, 0, 0);
Any ideas what's wrong with it ? Thank you ! Much appreciated
Reply
#2

You are putting it under OnGameModeInit right?
Reply
#3

The streamer function is CreateDynamic3DTextLabel not Create3DTextLabel.

Quote:
Originally Posted by BenTaylorUK
Посмотреть сообщение
You are putting it under OnGameModeInit right?
There is no rule like that.
Reply
#4

Quote:
Originally Posted by Yashas
Посмотреть сообщение
The streamer function is CreateDynamic3DTextLabel not Create3DTextLabel.



There is no rule like that.
Tryed CreateDynamic3DTextLabel, the same problem :/

Quote:
Originally Posted by BenTaylorUK
Посмотреть сообщение
You are putting it under OnGameModeInit right?
Yea
Reply
#5

The format goes like this
pawn Код:
Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
AH!! Found the bug
attachedplayer = INVALID_PLAYER_ID

You give it as 0 so it will be displayed to ID 0 only!
Put INVALID_PLAYER_ID so that its shown to all.

And INVALID_VEHICLE_ID also as the next parameter

pawn Код:
CreateDynamic3DTextLabel("TEST", COLOR_YELLOW, 859.9612, -604.4937, 18.4219, 100.0, INVALID_PLAYER_ID,INVALID_VEHICLE_ID);
This should work!If it isn't there's a problem with your co-ordinates.
Reply
#6

Still not showing ..... I'll get some random co - ordinates :/

EDIT: Same with the new co - ordinates ...... damn, somethings wrong there, but I can't find what ...
Reply
#7

CreateDynamic3DTextLabel("TEST",COLOR_YELLOW, 859.9612, -604.4937, 18.4219, 100.0);

Try leaving the Vehicle stuff out, worked for me.
Reply
#8

Are you sure you're in the same virtual world and interior as in the native ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)