Create3DTextLabel
#1

Whilist coding, I was having an issue with labels not showing up. It's a problem that i'm not sure of the cause. I thought it was a misplaced variable or something, however this isn't the case. I've tried it both dynamic and not.

pawn Код:
CreateDynamic3DTextLabel("Test", -1, spawn, 10.0, 0, 1);
is under OnGameModeInit. Anyone know a cause of this?? I've tried changing the colors, moving out of range and back in, quitting and rejoining, all with no luck.
Reply
#2

pawn Код:
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:distance = 100.0);
... i think you 3d text label it's attached on vehicle id 1 ?
try use hex color, not -1
Reply
#3

Quote:
Originally Posted by 0x41726d79
Посмотреть сообщение
pawn Код:
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:distance = 100.0);
... i think you 3d text label it's attached on vehicle id 1 ?
try use hex color, not -1
Hm, well I tried using 0xFF0000FF before, which should work, and I tried it with just Create3DTextLabel, which has no option to attach to vehicles

EDIT: Oddly enough, I opened pawn this morning, recompiled the code (without editing anything) and started the server. It worked. It must have been pawn itself
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)