16.05.2015, 21:49
Hey guys.
I'm working on a gamemode, which (would) include a vehicle buying/saving/loading system. I made every single stock which it requires. Saving path, free slot, saving vehicle, loading vehicle, creating vehicle.
Compiled it several times, no errors or warnings.
But when i write
LoadAllVehicles(); under OnGameModeInit and
SaveAllVehicles(); under OnGameModeExit,
it suddenly starts to show some errors which have nothing to do with the stocks or OnGameModeInit & -Exit. But when i remove the above lines, it shows no error.
.inc folder is up to date, every include which I need is on the top of the script.
Errors:
When LoadAllVehicles(); is under OnGameModeInit:
gamemodes\roleplay.pwn(337 -- 338) : error 047: array sizes do not match, or destination array is too small
When SaveAllVehicles(); is under OnGameModeExit:
gamemodes\roleplay.pwn(305) : error 017: undefined symbol "Open"
gamemodes\roleplay.pwn(305) : warning 213: tag mismatch
Please help me, I'm trying to solve this problem for 2 days..
I'm working on a gamemode, which (would) include a vehicle buying/saving/loading system. I made every single stock which it requires. Saving path, free slot, saving vehicle, loading vehicle, creating vehicle.
Compiled it several times, no errors or warnings.
Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
LoadAllVehicles(); under OnGameModeInit and
SaveAllVehicles(); under OnGameModeExit,
it suddenly starts to show some errors which have nothing to do with the stocks or OnGameModeInit & -Exit. But when i remove the above lines, it shows no error.
.inc folder is up to date, every include which I need is on the top of the script.
Errors:
When LoadAllVehicles(); is under OnGameModeInit:
gamemodes\roleplay.pwn(337 -- 338) : error 047: array sizes do not match, or destination array is too small
Код:
Line 337: CreateVehicleEx(VehicleInfo[vehicleID][vmodel],VehicleInfo[vehicleID][xspawn],VehicleInfo[vehicleID][yspawn],VehicleInfo[vehicleID][zspawn],
Код:
Line 338: VehicleInfo[vehicleID][anglespawn],VehicleInfo[vehicleID][col1],VehicleInfo[vehicleID][col2],VehicleInfo[vehicleID][respawn],VehicleInfo[vehicleID][owner]);
gamemodes\roleplay.pwn(305) : error 017: undefined symbol "Open"
gamemodes\roleplay.pwn(305) : warning 213: tag mismatch
Код:
Line 305: new INI:dFile = Open(VehiclePath(vehicleID));