CreateDynamic3DTextLabel tag mismatch
#1

Im getting tag mismatch on this:
pawn Код:
TaxidutyLabel[vehicleid] = Text3D:CreateDynamic3DTextLabel("** The taxi sign is shining with a yellow light **", COLOR_JOB_TAXI, 0.0, 0.0, 0.0, 20.0, 0, 1);
I've tried for very long to get this to work, can anyone see what's wrong with it?
And also, is the Text3D: needed? Im getting tag mismatch no-matter if i remove it or not.
Reply
#2

The var has to be Text3D
pawn Код:
new Text3D:TaxidutyLabel[MAX_VEHICLES];
TaxidutyLabel[vehicleid] = CreateDynamic3DTextLabel("** The taxi sign is shining with a yellow light **", COLOR_JOB_TAXI, 0.0, 0.0, 0.0, 20.0, 0, 1);
Reply
#3

pawn Код:
TaxidutyLabel[vehicleid] = Text3D:CreateDynamic3DTextLabel("** The taxi sign is shining with a yellow light **", COLOR_JOB_TAXI, 0.0, 0.0, 0.0, 20.0, 0, 1, 0, -1, -1, -1, 100.0);
try this
Reply
#4

Thank you Ahmad, i misunderstood the use of Text3D:
But now im getting tag mismatches from this:
pawn Код:
TaxidutyLabel[vehicleid] = 1;
And this:
pawn Код:
if(TaxidutyLabel[vehicleid] == 1)
Reply
#5

Why are you setting it to '1'? I think you should make one variable for the Text3D itself, and one for checking whatever you are trying to check.
Reply
#6

That's fixed it, thanks spedico.
I used the same variable when i used normal textlabels so i assumed i could with dynamics too.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)