SA-MP Forums Archive
error 010: invalid function or declaration - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 010: invalid function or declaration (/showthread.php?tid=648963)



error 010: invalid function or declaration - enzulikeS - 31.01.2018

D:\server\filterscripts\rentMentosan2.pwn(9) : error 010: invalid function or declaration

lINE 9: new MasinaUnu=4, MasinaDoi=3, MasinaTrei=5, MasinaPatru=5; MasinaCinci=5;


//=============================mews================= ================================
new inRent[MAX_PLAYERS], masinaInchiriata[MAX_PLAYERS], IDmasinaInchiriata[MAX_PLAYERS];
new MasinaUnu=4, MasinaDoi=3, MasinaTrei=5, MasinaPatru=5; MasinaCinci=5;
//================================================== ============================


Re: error 010: invalid function or declaration - RogueDrifter - 31.01.2018

this :
Код:
new MasinaUnu=4, MasinaDoi=3, MasinaTrei=5, MasinaPatru=5; MasinaCinci=5;
needs to be
Код:
new MasinaUnu=4, MasinaDoi=3, MasinaTrei=5, MasinaPatru=5, MasinaCinci=5;



Re: error 010: invalid function or declaration - enzulikeS - 31.01.2018

ya forgot them, but now it says: D:\server\filterscripts\rentMentosan2.pwn(297) : warning 203: symbol is never used: "MasinaCinci"

line 297 does not even exist


Re: error 010: invalid function or declaration - RogueDrifter - 31.01.2018

that's because you aren't using 'MasinaCinci' so just remove it from line 9 and it should look like this:
Код:
new MasinaUnu=4, MasinaDoi=3, MasinaTrei=5, MasinaPatru=5;



Re: error 010: invalid function or declaration - enzulikeS - 31.01.2018

fixed xD