Thanks I also have another question I know createvehicle causes vehicle to spawn but how might I go about attaching text to bus on spawn? I am just wondering Now I know the following code should work but I am a bit confused as I want the text to be there permanently. any ideas? I am wondering if the following is correct or not.
Vehicle 1:
Код:
vehicle_id = CreateVehicle( 431, -126.66, -1210.45, 2.69, 5, 0, 120 );
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "Bus 45 Los Santos", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
//Creating the Vehicle
//Attaching Text Label To Vehicle
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
Vehicle 2:
Код:
vehicle_id = CreateVehicle( 431, 1402.71, 1028.00, 10.81, 5, 0, 120 );
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "Bus 25 San Fierro", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
//Creating the Vehicle
//Attaching Text Label To Vehicle
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
Vehicle 3:
Код:
vehicle_id = CreateVehicle( 431, -98.67, -1168.64, 2.57, 5, 0, 120 );
vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "Bus 31 Las Venturas", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
//Creating the Vehicle
//Attaching Text Label To Vehicle
Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);
Compile Errors:
Код:
C:\Users\markh\Downloads\gta san andreas\filterscripts\road.pwn(15) : warning 217: loose indentation
C:\Users\markh\Downloads\gta san andreas\filterscripts\road.pwn(15) : error 017: undefined symbol "vehicle_id"
C:\Users\markh\Downloads\gta san andreas\filterscripts\road.pwn(15) : warning 202: number of arguments does not match definition
C:\Users\markh\Downloads\gta san andreas\filterscripts\road.pwn(16) : warning 217: loose indentation
C:\Users\markh\Downloads\gta san andreas\filterscripts\road.pwn(16) : error 017: undefined symbol "vehicle3Dtext"
C:\Users\markh\Downloads\gta san andreas\filterscripts\road.pwn(16) : error 017: undefined symbol "vehicle_id"
C:\Users\markh\Downloads\gta san andreas\filterscripts\road.pwn(16) : error 029: invalid expression, assumed zero
C:\Users\markh\Downloads\gta san andreas\filterscripts\road.pwn(16) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.