Symbol already defined: ...
Hello Allied Modders!
I have problem again.. I do scripting now in pawn just like in c++ and java usually do There are main file something.sma inside of it PHP Code:
inside the folders are files *.smn the are like parts of big script example in c++/c there are .cpp and h. and the big script will be .dll in pawn big script is .amxx then ( Edit: thats how the game engines work ) Now inside register_smd.smn i will show the problem part code PHP Code:
in something_smn.smn PHP Code:
in something_smn2.smn PHP Code:
Symbol already defined: do_something() so my question is how to fix this. how to do it that compiler will compile and things will work in game well. its really to big work to rename this do_something() to every scripts. I mean there must be a easy way to do this without doing things manually. I already use this here: PHP Code:
Thank you in advance! |
Re: Symbol already defined: ...
Quote:
I'm glad you solved your problem though. Good Job! |
Re: Symbol already defined: ...
In pawn, include file is just like putting all 1 single file before compilation.
So if you have more than 1 time the same function name it can't compile. That is as simple, don't put 2 functions with the same name. |
| All times are GMT -4. The time now is 06:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.