error con Create3DTextLabel
#1

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
Reply
#2

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:".
Reply
#3

Gracias, solucionado.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)