SA-MP Forums Archive
[Tutorial] How to prevent "core.inc(12) : 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to prevent "core.inc(12) : error 010: invalid function or declaration" (/showthread.php?tid=492849)



How to prevent "core.inc(12) : error 010: invalid function or declaration" - TheFlyer - 05.02.2014

Well this is simple but at the same time, scripters dont know why and I found out that today xD

well here goes the error:
pawn Code:
C:\Users\TheFlyer\Desktop\Server\pawno\include\core.inc(12) : error 010: invalid function or declaration
so how to fix this?

its simple

just check for any thing abnormal above
pawn Code:
#include <a_samp>
example:
pawn Code:
f/*          My Server              */
#include <a_samp>
you can see that the "f" is there, so remove it :P

Other sort of these errors can occour when this type of stuff is putted above "#include" so the best way to prevent this is putting all #include at the top of the script like this

pawn Code:
#include <a_samp>
/*
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
============================================================================================================================================================

                                                              My Server
                                                                      by Me

============================================================================================================================================================
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
*/
hoped this helped some scripters



Re: How to prevent "core.inc(12) : error 010: invalid function or declaration" - AlbaniaMafiaRP - 20.03.2016

nice one,ima goona re-edit it ,if im allowed.