SA-MP Forums Archive
3D text labels are not showing up - 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: 3D text labels are not showing up (/showthread.php?tid=538948)



3D text labels are not showing up - kesarthakur - 25.09.2014

i added this lines in my OnGameModeInIt()

pawn Код:
cmdspickup = CreatePickup(1239, 2, 1078.8491, 1065.7372, 10.8359, -1);
Create3DTextLabel("Commands", 0xFF0000FF , 1078.8491, 1065.7372, 10.8359+0.6, 40.0, -1, 0);
helppickup = CreatePickup(1239, 2, 1062.8152, 1080.9312, 10.1602, -1);
Create3DTextLabel("Help", 0xFF0000FF , 1062.8152, 1080.9312, 10.1602+0.6, 40.0, -1, 0);
telepickup = CreatePickup(1239, 2, 1087.1531, 1104.6786, 10.1856, -1);
Create3DTextLabel("Teleports", 0xFF0000FF , 1087.1531, 1104.6786, 10.1856+0.6, 40.0, -1, 0);
rulepickup = CreatePickup(1239, 2, 1098.3083, 1080.8220, 10.8359, -1);
Create3DTextLabel("Rules", 0xFF0000FF , 1098.3083, 1080.8220, 10.8359+0.6, 40.0, -1, 0);
vehpickup = CreatePickup(1318, 2, 1028.5106, 1124.7836, 11.0000, -1);
Create3DTextLabel("Vehicles", 0xFF0000FF , 1028.5106, 1124.7836, 11.0000+0.6, 40.0, -1, 0);
but only pickups are showing not 3d labels


Respuesta: 3D text labels are not showing up - ghost556 - 25.09.2014

Код:
(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS);
You need to be in the right virtual world (2nd last one).
You have placed your virtual world to -1.
The default virtualworld is 0.


Re: 3D text labels are not showing up - ranme15 - 25.09.2014

Try changing the virtual world (one parameter before the last) to 0.


Re: 3D text labels are not showing up - kesarthakur - 25.09.2014

-1 means every virtual world


Respuesta: 3D text labels are not showing up - ghost556 - 25.09.2014

Well, in that case if you want it in all virtual worlds you should use.
Код:
CreateDynamic3DTextLbel(" TEXT ", COLOUR , x, y, z, Range);
As the samp version counts -1 as a virtual world, this one will place it in all virtual worlds.
Just to let you know you do require streamer to use this function.