SA-MP Forums Archive
Help stream Text3D - 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: Help stream Text3D (/showthread.php?tid=628404)



Help stream Text3D - weex - 10.02.2017

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);



Re: Help stream Text3D - weex - 10.02.2017

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


Re: Help stream Text3D - Sew_Sumi - 10.02.2017

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.


Re: Help stream Text3D - weex - 10.02.2017

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...


Re: Help stream Text3D - Sew_Sumi - 10.02.2017

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


Re: Help stream Text3D - weex - 11.02.2017

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


Re: Help stream Text3D - Sew_Sumi - 11.02.2017

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); 



Re: Help stream Text3D - weex - 12.02.2017

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