[Help] Streamer - world variable with 3DTextLabelEx.
#1

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)