Tag mismatch? - 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: Tag mismatch? (
/showthread.php?tid=471776)
Tag mismatch? -
Tagathron - 25.10.2013
I get tag mismatch warning from the line:
Код:
radioDeployedLabel[playerid] = Create3DTextLabel(string, 0xFFF900FF, PRinfo[playerid][locX], PRinfo[playerid][locY], PRinfo[playerid][locZ], 35.0, 0, 0);
This is global variable radioDeployedLabel:
Код:
new radioDeployedLabel[MAX_PLAYERS];
I assign a value to the variable and that variable array index is playerid,so i can later delete the 3DTextLabel in another command,but the Label which was created by that player.
Why it warns me it's tag mismatch?
(PRinfo[playerid][locX], PRinfo[playerid][locY], PRinfo[playerid][locZ] are just values that hold the location of the label,they're near the player location)
Re: Tag mismatch? - Patrick - 25.10.2013
Missing
Parameters, re-check your
parameters
Parameters
pawn Код:
Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS);
EDIT: Oh, Yeah didn't see your variable, you forgot to put Text3D
Re: Tag mismatch? -
Tagathron - 25.10.2013
No i forgot to add Text3D: infront of declaring the variable at first
Код:
new Text3D:radioDeployedLabel[MAX_PLAYERS];
Just realised it now,sorry for bothering.