Help pls. i fkd up all my WORK
#2

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;
}
}

Look Like you have already declared your function.
PHP код:
stock VoziloJeAvion(vehicleid)
{
    
//......
}
stock VoziloJeBrod(vehicleid)
{
    
//......
}
stock VoziloJeKamion(vehicleid)
{
    
//......

You have already declared your function as the same name of varibales.
local variable "VoziloJeAvion" shadows a variable at a preceding level = 2 variables are declared local & global as same name
PHP код:
new VoziloJeAvionVoziloJeBrodVoziloJeKamionVoziloJe MotorVoziloJeBiciklaDostavljacVozila;  // thease are varibables, you can't use them as function 
Look here: VoziloJe Motor You can't use space in variables: (VoziloJe_Motor, this is valid)
Fix thease errors.
Reply


Messages In This Thread
Help pls. i fkd up all my WORK - by gdanbo - 05.10.2015, 00:15
Re: Help pls. i fkd up all my WORK - by VishvaJeet - 05.10.2015, 07:05
Re: Help pls. i fkd up all my WORK - by Bartels - 05.10.2015, 07:46
Re: Help pls. i fkd up all my WORK - by gdanbo - 05.10.2015, 08:51
Re: Help pls. i fkd up all my WORK - by gdanbo - 05.10.2015, 09:01
Re: Help pls. i fkd up all my WORK - by DaniceMcHarley - 05.10.2015, 09:15
Re: Help pls. i fkd up all my WORK - by gdanbo - 05.10.2015, 09:52
Re: Help pls. i fkd up all my WORK - by Ahmad45123 - 05.10.2015, 10:07
Re: Help pls. i fkd up all my WORK - by gdanbo - 05.10.2015, 10:24

Forum Jump:


Users browsing this thread: 1 Guest(s)