Errors 010 and 021. - 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: Errors 010 and 021. (
/showthread.php?tid=502109)
Errors 010 and 021. -
iBitch - 22.03.2014
Basically, I'm getting some silly errors I didn't get yesterday.
I've been scripting in
Notepad++ and I basically
split my files for more organization. Main.pwn contains OnGameModeInit and OnPlayerConnect stuff and bunch of includes, which again have functions, commands, mapping and some defines. Anyways, the deal's this, I have a separate .pwn for mapping, which I include on OnGameModeInit and some of the mapping has RemoveBuildingForPlayer, under OnPlayerConnect.
So far so good. Problems start when I start to add more mapping I forgot to add yesterday, it pops up 26 errors, each and everyone saying:
Код:
mapping.pwn(5) : error 010: invalid function or declaration
mapping.pwn(5) : error 010: invalid function or declaration
mapping.pwn(6) : error 021: symbol already defined: "CreateDynamicObject"
mapping.pwn(6) : error 010: invalid function or declaration
mapping.pwn(7) : error 021: symbol already defined: "CreateDynamicObject"
mapping.pwn(7) : error 010: invalid function or declaration
...
mapping.pwn(17) : error 021: symbol already defined: "CreateDynamicObject"
mapping.pwn(17) : error 010: invalid function or declaration
The silly thing is that when I deleted the mapping I wanted to add, I still got these errors. Yesterday it ran smooth.
Re: Errors 010 and 021. -
iBitch - 22.03.2014
Okay, this was silly... Compiled it once more changing the name of the .pwn and it ran smoothly.
Could anyone delete this? Solved.