Evo vehicle help
#1

LINE
Quote:

LoadVehicle(vehicleID, file[]) {
INI_ParseFile(file, "LoadVehicleData", .bExtra=true, .extra = vehicleID);

CreateVehicleEx(VehicleInfo[vehicleID][vModel], VehicleInfo[vehicleID][xSpawn], VehicleInfo[vehicleID][ySpawn], VehicleInfo[vehicleID][zSpawn], VehicleInfo[vehicleID][angleSpawn], VehicleInfo[vehicleID][vCol1], VehicleInfo[vehicleID][vCol2], VehicleInfo[vehicleID][vPaintjob], VehicleInfo[vehicleID][vMod],VehicleInfo[vehicleID][vPlate], VehicleInfo[vehicleID][vRespawn], VehicleInfo[vehicleID][vOwner], VehicleInfo[vehicleID][vPrice], VehicleInfo[vehicleID][Secure], VehicleInfo[vehicleID][isOwned],VehicleInfo[vehicleID][vBuyable]);
}

ERROR
error 075: input line too long (after substitutions)
error 017: undefined symbol "VehicleIn"
warning 217: loose indentation
error 017: undefined symbol "fo"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
[/CODE]
Reply
#2

Line is too long. Spread it out over multiple lines. You can do it like this, which is also much more readable.
PHP код:
CreateVehicleEx
(
    
VehicleInfo[vehicleID][vModel], 
    
VehicleInfo[vehicleID][xSpawn], 
    
VehicleInfo[vehicleID][ySpawn], 
    
VehicleInfo[vehicleID][zSpawn], 
    
VehicleInfo[vehicleID][angleSpawn], 
    
VehicleInfo[vehicleID][vCol1], 
    
VehicleInfo[vehicleID][vCol2], 
    
VehicleInfo[vehicleID][vPaintjob], 
    
VehicleInfo[vehicleID][vMod],
    
VehicleInfo[vehicleID][vPlate], 
    
VehicleInfo[vehicleID][vRespawn], 
    
VehicleInfo[vehicleID][vOwner], 
    
VehicleInfo[vehicleID][vPrice], 
    
VehicleInfo[vehicleID][Secure], 
    
VehicleInfo[vehicleID][isOwned],
    
VehicleInfo[vehicleID][vBuyable]
); 
Reply
#3

Thank you
but if Iam copy to server and server start and send /vcreate
server shout down and write to log.

Quote:

Run time error 20: "Invalid index parameter (bad entry point)

Reply
#4

Be sure you're putting CreateVehicleEx function after the hook / re definition of CreateVehicle to CreateVehicleEx.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)