22.03.2014, 11:36
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:
The silly thing is that when I deleted the mapping I wanted to add, I still got these errors. Yesterday it ran smooth.
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