13.02.2013, 12:17
Hello. So I created new stock called Create3DTextLabelA, it's exactly same as Create3DTextLabel, just my stock saves label position in array. And I got tag mismatch warning, but can't find where it is. Here is my code:
Compiler saying, that tag mismatch is on line:
But which one is wrong?
Code:
new Float:Labels3D[2000][3]; stock Create3DTextLabelA(text[], color, Float:x, Float:y, Float:z, Float:drawdistance, virtualworld, visiblewalls) { new tmp; tmp = Create3DTextLabel(text,color,Float:x,Float:y,Float:z,Float:drawdistance,virtualworld,visiblewalls); Labels3D[tmp][0]=x; Labels3D[tmp][1]=y; Labels3D[tmp][2]=z; return tmp; }
Code:
tmp = Create3DTextLabel(text,color,Float:x,Float:y,Float:z,Float:drawdistance,virtualworld,visiblewalls);