22.02.2018, 04:17
Code:
C:\Users\matia\Desktop\Actualizacion SV\filterscripts\Personal.pwn(24) : warning 203: symbol is never used: "vehicleID" C:\Users\matia\Desktop\Actualizacion SV\filterscripts\Personal.pwn(72) : error 047: array sizes do not match, or destination array is too small C:\Users\matia\Desktop\Actualizacion SV\filterscripts\Personal.pwn(82) : error 029: invalid expression, assumed zero C:\Users\matia\Desktop\Actualizacion SV\filterscripts\Personal.pwn(82) : error 001: expected token: ";", but found "return" C:\Users\matia\Desktop\Actualizacion SV\filterscripts\Personal.pwn(82) : error 017: undefined symbol "i" C:\Users\matia\Desktop\Actualizacion SV\filterscripts\Personal.pwn(82) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
CODE:
Code:
stock VehicleLoad(vehicleID, file[]) // This function will load the vehicle provided by the id when the server starts. { INI_ParseFile(file, "LoadVehicleData", .bExtra = true, .extra = vehicleID); // Parse the vehicle data from the INI file. VehicleCreate(VehicleInfo[vehicleID][vModel], VehicleInfo[vehicleID][vLoc], VehicleInfo[vehicleID][vColor1], VehicleInfo[vehicleID][vColor2], VehicleInfo[vehicleID][vRespawn], VehicleInfo[vehicleID][vOwner], VehicleInfo[vehicleID][vLocked]); // Creates the vehicle from the information we loaded and parsed. Pretty self-explanatory. } forward LoadVehicleData(vehicleID, name[], value[]); public LoadVehicleData(vehicleID, name[], value[]) // This a callback with the parameter of the vehicleID send from our VehicleLoad function. This function will pretty much parse the data from the file. { new strLoc[8]; // Will hold the location key name dynamically. // The first argument is the key and the second argument is the data which will hold the value of that key. INI_Int("model", VehicleInfo[vehicleID][vModel]); for(new i = 0; i < 4; i++) format(strLoc, sizeof(strLoc), "Loc%d", i), INI_Float(strLoc, VehicleInfo[vehicleID][vLoc][i]); // Looping through our location data and retrive it. Loc0 = LocX, Loc1 = LocY, Loc2 = LocZ, Loc3 = LocA. INI_Int("color1", VehicleInfo[vehicleID][vColor1]); // You should've guessed it by now. INI_Int("color2", VehicleInfo[vehicleID][vColor2]); INI_Int("respawn", VehicleInfo[vehicleID][vRespawn]); INI_String("owner", VehicleInfo[vehicleID][vOwner], MAX_PLAYER_NAME); VehicleInfo[vehicleID][vLocked] = INI_Int("locked") == 1 ? true : false; //Converting the locked data from int(whole number) to bool(true/false) and assign it. return 1; }