SA-MP Forums Archive
About Streamer_SetFloatData - 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: About Streamer_SetFloatData (/showthread.php?tid=640078)



About Streamer_SetFloatData - RedGun2015 - 27.08.2017

Hello, i'm new in scripting world and i see this thing in my gamemode when a player die, is creat a dynamic 3dtextlabe, and i want to now what is this code (Streamer_SetFloatData)
Is for attach? Because i see others that are using only CreateDynamic3dTextLabel and they are done, just this, without Streamer_SetFloatData. I only want just to know if i should use? or in return should i use just (Attach3DTextLabelToPlayer(test, playerid, 0.0, 0.0, 0.7) or nothing?
Код:
DeadLabel[playerid] = CreateDynamic3DTextLabel("{337BF0}[dead]", COLOR_WHITE, 0, 0, -20, 20, playerid);
Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, DeadLabel[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.31); // this is the line that i say



Re: About Streamer_SetFloatData - Xeon™ - 27.08.2017

Quote:
Originally Posted by RedGun2015
Посмотреть сообщение
Hello, i'm new in scripting world and i see this thing in my gamemode when a player die, is creat a dynamic 3dtextlabe, and i want to now what is this code (Streamer_SetFloatData)
Is for attach? Because i see others that are using only CreateDynamic3dTextLabel and they are done, just this, without Streamer_SetFloatData. I only want just to know if i should use? or in return should i use just (Attach3DTextLabelToPlayer(test, playerid, 0.0, 0.0, 0.7) or nothing?
Код:
DeadLabel[playerid] = CreateDynamic3DTextLabel("{337BF0}[dead]", COLOR_WHITE, 0, 0, -20, 20, playerid);
Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, DeadLabel[playerid] , E_STREAMER_ATTACH_OFFSET_Z, 0.31); // this is the line that i say
No you don't need it, if you want only attaching it.

PHP код:
Text3D:CreateDynamic3DTextLabel(const text[], colorFloat:xFloat:yFloat:zFloat:drawdistanceattachedplayer INVALID_PLAYER_IDattachedvehicle INVALID_VEHICLE_IDtestlos 0worldid = -1interiorid = -1playerid = -1Float:streamdistance 100.0); 
use only this
PHP код:
DeadLabel[playerid] = CreateDynamic3DTextLabel("{337BF0}[dead]"COLOR_WHITE00, -2020playerid); 



Re: About Streamer_SetFloatData - RedGun2015 - 28.08.2017

Ok, but can you explain what does exactly?