3DTextLabel with streamer don't work - 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: 3DTextLabel with streamer don't work (
/showthread.php?tid=658549)
3DTextLabel with streamer don't work -
djoudjou - 06.09.2018
Hello,
This code don't work:
PHP код:
raceItems[itemID][LabelID] = CreateDynamic3DTextLabel(formatType, 0xFFFFFFFF, raceItems[itemID][posItems][0], raceItems[itemID][posItems][1], raceItems[itemID][posItems][2], 15.0, VW_RACEDM, 0);
But this code work:
PHP код:
raceItems[itemID][LabelID] = Create3DTextLabel(formatType, 0xFFFFFFFF, raceItems[itemID][posItems][0], raceItems[itemID][posItems][1], raceItems[itemID][posItems][2], 15.0, VW_RACEDM, 0);
How can I solve this ? My "CreateDynamicPickup" work perfectly, so I think the streamer is ok.
Re: 3DTextLabel with streamer don't work -
Dayrion - 06.09.2018
Because you are using it wrong. Maybe read the documentation before using a plugin is a good idea.
Код:
STREAMER_TAG_3D_TEXT_LABEL 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 = STREAMER_3D_TEXT_LABEL_SD, areaid = -1, priority = 0 )