Problem With 3dTextLabel -
saikumar - 29.04.2014
Hello guys,
i am trying to create 3dtextdraws at some locs with checkpoints.
i used this code:
pawn Код:
lobbyenter = CreateDynamicCP(-2624.6023, 1412.7440, 7.0938, 1.5, -1, 0, -1, 150.0);
lobbyexit = CreateDynamicCP(1726.8781, -1638.0042, 20.2230, 1.5, -1, 18, -1, 150.0);
Create3DTextLabel("Oblivion Server Lobby", 0xFFFFFFFF, -2624.6023, 1412.7440, 7.0938, 40.0, -1, 0);
Create3DTextLabel("Exit", 0xFFFFFFFF, 1726.8781, -1638.0042, 20.2230, 40.0, -1, 0);
the checkpoints are working and visible but labels are not visible...
i dont know why it is happening..
maybe is this because of creating checkpoint and label at same location

or anyother reason...
please help me...
and thanks in advance!!!!!!!!!!
Re: Problem With 3dTextLabel -
IndependentGaming - 29.04.2014
Well you can do i like this
Example:
Код:
CreateDynamic3DTextLabel("Type here you text.", COLOR_DBLUE, 1188.5157470703,-1350.9741210938, 2423.2648925781+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, 1, -1); // What it is
+rep if its working
Regards.
Re: Problem With 3dTextLabel -
saikumar - 29.04.2014
Quote:
Originally Posted by hwakinsRP
Well you can do i like this
Example:
Код:
CreateDynamic3DTextLabel("Type here you text.", COLOR_DBLUE, 1188.5157470703,-1350.9741210938, 2423.2648925781+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, 1, -1); // What it is
+rep if its working
Regards.
|
Can anybody describe more clearly please??
Re: Problem With 3dTextLabel -
Xenforox - 29.04.2014
You should place it under:
PHP код:
public OnGameModeInit()
Re: Problem With 3dTextLabel -
Bingo - 29.04.2014
Try to use this color
0xFF0000FF.
Make sure labels are placed under (GameModeInit).
Re: Problem With 3dTextLabel -
saikumar - 29.04.2014
Quote:
Originally Posted by Xenforox
You should place it under:
PHP код:
public OnGameModeInit()
|
Quote:
Originally Posted by Bingo
Try to use this color 0xFF0000FF.
Make sure labels are placed under (GameModeInit).
|
i didnt mean that...
pawn Код:
CreateDynamic3DTextLabel("text.", COLOR_DBLUE, 1188.5157470703,-1350.9741210938, 2423.2648925781+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, 1, -1);
i want to know where should i place x co-ords,y co-ords,z co-orfds,interior id,virtual world,seethroughobjects number...bla bla in the given line?
Re: Problem With 3dTextLabel -
Bingo - 29.04.2014
Quote:
Originally Posted by saikumar
i didnt mean that...
pawn Код:
CreateDynamic3DTextLabel("text.", COLOR_DBLUE, 1188.5157470703,-1350.9741210938, 2423.2648925781+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, 1, -1);
i want to know where should i place x co-ords,y co-ords,z co-orfds,interior id,virtual world,seethroughobjects number...bla bla in the given line?
|
https://sampwiki.blast.hk/wiki/Create3DTextLabel
Re: Problem With 3dTextLabel -
saikumar - 29.04.2014
there is difference between this line:
pawn Код:
Create3DTextLabel("I'm at the coordinates:\n30.0, 40.0, 50.0", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, 0);
and this line:
pawn Код:
CreateDynamic3DTextLabel("text.", COLOR_DBLUE, 1188.5157470703,-1350.9741210938, 2423.2648925781+0.6, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, 1, -1);
Re: Problem With 3dTextLabel -
Konstantinos - 29.04.2014
pawn Код:
native 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);
You can check the parameters of related functions/callbacks from the streamer plugin to its original thread:
https://sampforum.blast.hk/showthread.php?tid=102865
Re: Problem With 3dTextLabel -
saikumar - 29.04.2014
Quote:
Originally Posted by Konstantinos
pawn Код:
native 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);
You can check the parameters of related functions/callbacks from the streamer plugin to its original thread: https://sampforum.blast.hk/showthread.php?tid=102865
|
thank you very much dude....
every are great dude....you are solving every Scripting problem of mine