05.10.2015, 07:05
Quote:
///////////////////////////////////////////////// new VoziloJeAvion,VoziloJeBrod,VoziloJeKamion,VoziloJe Motor,VoziloJeBicikla,DostavljacVozila; for(new o; o < MAX_VOZILA; o++) { if(VoziloJeAvion(GetVehicleModel(o)) || VoziloJeBrod(GetVehicleModel(o)) || VoziloJeKamion(GetVehicleModel(o))) Fuel[o] = 80; else if(VoziloJeMotor(GetVehicleModel(o))) Fuel[o] = 45; else if(VoziloJeBicikla(GetVehicleModel(o)) || GetVehicleModel(o) == 53) Fuel[o] = 1000000; else Fuel[o] = 45; if(!VoziloJeBicikla(GetVehicleModel(o))) { new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(o, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(o, 0, 0, alarm, doors, bonnet, boot, objective); } if(DostavljacVozila(GetVehicleModel(o))) { ProduktiVozila[o] = 0; } } |
PHP код:
stock VoziloJeAvion(vehicleid)
{
//......
}
stock VoziloJeBrod(vehicleid)
{
//......
}
stock VoziloJeKamion(vehicleid)
{
//......
}
local variable "VoziloJeAvion" shadows a variable at a preceding level = 2 variables are declared local & global as same name
PHP код:
new VoziloJeAvion, VoziloJeBrod, VoziloJeKamion, VoziloJe Motor, VoziloJeBicikla, DostavljacVozila; // thease are varibables, you can't use them as function
Fix thease errors.