SA-MP Forums Archive
Tag mismatch with Create3DTextLabel. HELP ME! - 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 with Create3DTextLabel. HELP ME! (/showthread.php?tid=498048)



Tag mismatch with Create3DTextLabel. HELP ME! - Thewin - 01.03.2014

I need create a TextLAbel and attach to vehicle but i have an error.



Код:
                    	new infovehiculo,string[256];
                        format(string, sizeof(string), "{F6FF00}VEHНCULO EN VENTA\n{FFFFFF}Precio: $%d\nID: %d", VehiculosInfo[i][vprecio], VehiculosInfo[i][vID]);
                        infovehiculo = Create3DTextLabel(string, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1);
                        Attach3DTextLabelToVehicle(infovehiculo,VehiculosInfo[i][vID], 0.0, 0.0, 0.5);

line of error:

Код:
infovehiculo = Create3DTextLabel(string, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1);



Re: Tag mismatch with Create3DTextLabel. HELP ME! - Konstantinos - 01.03.2014

Change:
pawn Код:
new infovehiculo,string[256];
to:
pawn Код:
new Text3D: infovehiculo, string[128];



Re: Tag mismatch with Create3DTextLabel. HELP ME! - Beckett - 01.03.2014

(Text3D:id, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ)
As the wiki says, it must be Text3D:VARIABLE_NAME