SA-MP Forums Archive
[Help] Streamer - world variable with 3DTextLabelEx. - 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] Streamer - world variable with 3DTextLabelEx. (/showthread.php?tid=491708)



[Help] Streamer - world variable with 3DTextLabelEx. - Strain - 31.01.2014

Hey.
I'm trying to use the function CreateDynamic3DTextLabelEx with world variable, but I have error
Код:
must be a constant expression; assumed zero
Code:
PHP код:
new world 5;
P3Data[playerid] = CreateDynamic3DTextLabelEx("[Bot]", -10,0,040.0playeridINVALID_VEHICLE_ID0100.0, { world }, { -}, { -}); 
I want to use the function Ex and not the normal CreateDynamic3DTextLabel.
Thanks


Re: [Help] Streamer - world variable with 3DTextLabelEx. - Misiur - 31.01.2014

That's a tricky one, long story short:
pawn Код:
new world = 5;
P3Data[playerid] = CreateDynamic3DTextLabelEx("[Bot]", -1, 0,0,0, 40.0, playerid, INVALID_VEHICLE_ID, 0, 100.0, {});
Streamer_AppendArrayData(STREAMER_TYPE_3D_TEXT_LABEL, P3Data[playerid], E_STREAMER_WORLD_ID, world );
Or if worldid is constant (doesn't need to be a variable):
pawn Код:
P3Data[playerid] = CreateDynamic3DTextLabelEx("[Bot]", -1, 0,0,0, 40.0, playerid, INVALID_VEHICLE_ID, 0, 100.0, { 5 });