About Streamer_SetFloatData
#1

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

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

Ok, but can you explain what does exactly?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)