SA-MP Forums Archive
error con Create3DTextLabel - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: error con Create3DTextLabel (/showthread.php?tid=498047)



error con Create3DTextLabel - Thewin - 01.03.2014

Bueno, estoy intentado crear un texto y colocarselo a un vehiculo, pero me lanza un error de tag mismatch


esta es la funcion:


Код:
                    	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);
Linea del error:
Код:
infovehiculo = Create3DTextLabel(string, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1);
Tengo todas las variables definidas


Respuesta: error con Create3DTextLabel - EduGTA - 01.03.2014

La razуn por la cual te lanza "Tag Mismatch" es porque las variables con las que utilizamos las 3DTextLabel, tienen que tener el tag "Text3D":

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

Create3DTextLabel retorna "Text3D:", tambiйn, si te fijas en las funciones de 3DTextLabel, te aparecerбn "Text3D:id", indicando que necesitan una variable tag "Text3D:".



Re : error con Create3DTextLabel - Thewin - 01.03.2014

Gracias, solucionado.