Help stream Text3D
#1

I've used more then 1000 Text3D...
So i needed to use CreateDynamic3DTextLabel from stream lib

But it's not work well...
Every Text3D is showing on player id 0, houses,weeds,nametags, everything...

I have this 6 ones
Код:
// 3dlabels
new Text3D:NameTag[MAX_PLAYERS] = {Text3D:0, Text3D:29}; // 30
new Text3D:Text3Dmaconhas[MAX_PLAYERS] = {Text3D:30, Text3D:59}; // 30
new Text3D:Text3Dcasas[MAX_HOUSES] = {Text3D:60, Text3D:785}; // 726
new Text3D:Text3Dcorposactors[MAX_ACTORS] = {Text3D:786, Text3D:1385}; // 600
new Text3D:Text3Ddropweapons[MAX_DROP_ITEMS] = {Text3D:1386, Text3D:2135}; // 750
new Text3D:pacotelabel; // pacote label tbm nгo deveria ser daquele jeito /\?
I've added this thing:
Код:
 = {Text3D:0, Text3D:29}; // 30
And:
Код:
	DestroyDynamic3DTextLabel(NameTag[playerid]); // DeleteNametag
	NameTag[playerid] = Text3D:-1;
To remove conflicts IDs (i saw it in a topic here, but idk if i'm doing right)
Anyways, not work...

The only Attach3DTextLabelToPlayer i have is this:
Код:
	// CreateNametag
	new string[80];
	format(string, sizeof(string), "(%i)%s", playerid , PlayerName(playerid));
	NameTag[playerid] = CreateDynamic3DTextLabel(string, COLOR_WHITE, 0, 0, 0, NAME_DRAWDISTANCE, 0, 1 );
	Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0.0, 0.0, 0.2);
Reply
#2

No one ever had this problem?
I didn't found nothing like this on forum :\
Reply
#3

Instead of 0 for attachedplayer ID, try -1... Using 0 as it is a valid playerID would explain why only player 0 can see it.
Reply
#4

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Instead of 0 for attachedplayer ID, try -1... Using 0 as it is a valid playerID would explain why only player 0 can see it.
Код:
	new string[80];
	format(string, sizeof(string), "(%i)%s", playerid , PlayerName(playerid));
	NameTag[playerid] = Create3DTextLabel(string, COLOR_WHITE, 0, 0, 0, NAME_DRAWDISTANCE, 0, 1 );
	Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0.0, 0.0, 0.2);
I didn't undertsand what you mean, sorry...

Only player 0 can see 3DLabels?
No...

What i tried to say is:
All servers 3DLabels are on playerid (0) head's

Sorry to my english...
Reply
#5

PHP код:
NAME_DRAWDISTANCE0
0 in there, says attachedplayer, and that's where your issue is...
Reply
#6

If i use Create3DTextLabel normal, it's work fine...
But when i change every Create3DTextLabel to CreateDynamic3DTextLabel

So this problem start...

You mean the problem is here? Lol... where?
NameTag[playerid] = CreateDynamic3DTextLabel(string, COLOR_WHITE, 0, 0, 0, NAME_DRAWDISTANCE, 0, 1 );
NameTag[playerid] = CreateDynamic3DTextLabel(text_, COLOR_______, X, Y, Z, DISTANCE(50.0)_____,VW,TL);

Virtual World is the world will show up? Right?
GetPlayerVirtualWorld(playerid);

TL
Is:
1- Show text behind another objects
0- Do not show text behind another objects
Reply
#7

Look, you need to read the documentation, as what comes after the draw distance, isn't VW... It's WHAT PLAYER IT ATTACHES TO....

You can't simply change the function name, and not check what you need to change IN the function params.

PHP код:
Create3DTextLabel(text[], colorFloat:XFloat:YFloat:ZFloat:DrawDistancevirtualworldtestLOS
PHP код:
CreateDynamic3DTextLabel(const text[], colorFloat:xFloat:yFloat:zFloat:drawdistanceattachedplayer INVALID_PLAYER_IDattachedvehicle INVALID_VEHICLE_IDtestlos 0worldid = -1interiorid = -1playerid = -1Float:streamdistance STREAMER_3D_TEXT_LABEL_SDSTREAMER_TAG_AREA areaid STREAMER_TAG_AREA -1priority 0); 
Reply
#8

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Look, you need to read the documentation, as what comes after the draw distance, isn't VW... It's WHAT PLAYER IT ATTACHES TO....

You can't simply change the function name, and not check what you need to change IN the function params.

PHP код:
Create3DTextLabel(text[], colorFloat:XFloat:YFloat:ZFloat:DrawDistancevirtualworldtestLOS
PHP код:
CreateDynamic3DTextLabel(const text[], colorFloat:xFloat:yFloat:zFloat:drawdistanceattachedplayer INVALID_PLAYER_IDattachedvehicle INVALID_VEHICLE_IDtestlos 0worldid = -1interiorid = -1playerid = -1Float:streamdistance STREAMER_3D_TEXT_LABEL_SDSTREAMER_TAG_AREA areaid STREAMER_TAG_AREA -1priority 0); 
Thank you so much! +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)