Problem With 3dTextLabel
#1

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!!!!!!!!!!
Reply
#2

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.
Reply
#3

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??
Reply
#4

You should place it under:
PHP код:
public OnGameModeInit() 
Reply
#5

Try to use this color 0xFF0000FF.

Make sure labels are placed under (GameModeInit).
Reply
#6

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?
Reply
#7

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
Reply
#8

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);
Reply
#9

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
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)