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=542427)



Create3DTextLabel - TakeiT - 19.10.2014

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.


Re: Create3DTextLabel - 0x41726d79 - 19.10.2014

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


Re: Create3DTextLabel - TakeiT - 19.10.2014

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