05.10.2015, 00:15
Hello i was working on something,and then when i compiled it it showed 24 errors,all something undefined,but they were defined. After i defined one again there weren't 24 errors anymore but there were 4 errors.So here they are.
And here goes the script with errors:
I tried to compile gamemode that i didn't edited and it worked and it was all the same just without errors and without defining needed. What is that? HELP ME PLS.
Quote:
C:\Users\Janko i Boba\Desktop\BWRP.pwn(12746) : warning 219: local variable "VoziloJeAvion" shadows a variable at a preceding level C:\Users\Janko i Boba\Desktop\BWRP.pwn(12746) : warning 219: local variable "VoziloJeBrod" shadows a variable at a preceding level C:\Users\Janko i Boba\Desktop\BWRP.pwn(12746) : warning 219: local variable "VoziloJeKamion" shadows a variable at a preceding level C:\Users\Janko i Boba\Desktop\BWRP.pwn(12746) : warning 219: local variable "VoziloJeMotor" shadows a variable at a preceding level C:\Users\Janko i Boba\Desktop\BWRP.pwn(12746) : warning 219: local variable "VoziloJeBicikla" shadows a variable at a preceding level C:\Users\Janko i Boba\Desktop\BWRP.pwn(12746) : warning 219: local variable "DostavljacVozila" shadows a variable at a preceding level C:\Users\Janko i Boba\Desktop\BWRP.pwn(12749) : error 012: invalid function call, not a valid address C:\Users\Janko i Boba\Desktop\BWRP.pwn(12749) : error 001: expected token: ";", but found ")" C:\Users\Janko i Boba\Desktop\BWRP.pwn(12749) : error 029: invalid expression, assumed zero C:\Users\Janko i Boba\Desktop\BWRP.pwn(12749) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
And here goes the script with errors:
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; } } |