Function not found using #include's
#1

Hello,

For readability in a fair big gamemode I've decided to split up all my functions etc, in different files as includes.

Now there's a function that it cannot find even though it is included.

Includes for the files.
pawn Код:
// Settings
#include <settings\variables>
#include <settings\config>
#include <settings\dialogs>

// Data
#include <data\common>
#include <data\datastructure>
#include <data\missions>
#include <data\dealerships>

// Functions
#include <functions\default>
#include <functions\loadall>
#include <functions\missions>
#include <functions\commands>
Function it cannot find:
Код:
C:\Users\Kevin\Dropbox\pawn\pawno\include\functions\commands.inc(837) : error 017: undefined symbol "StartMission"
But what is weird is that it's just in the data\missions.inc:

pawn Код:
forward StartMission(playerid, type);
public StartMission(playerid, type)
So to make things a little more clear:

- data\missions is called before functions\commands.
- StartMission is forwarded as a function.

Any help would be greatly appreciated!


- Thanks for looking into it!
Reply


Messages In This Thread
Function not found using #include's - by SomebodyAndMe - 09.07.2016, 13:03
Re: Function not found using #include's - by Nero_3D - 09.07.2016, 13:19
Re: Function not found using #include's - by SomebodyAndMe - 09.07.2016, 13:22
Re: Function not found using #include's - by PrO.GameR - 09.07.2016, 13:56
Re: Function not found using #include's - by SomebodyAndMe - 09.07.2016, 14:31
Re: Function not found using #include's - by PrO.GameR - 09.07.2016, 16:23

Forum Jump:


Users browsing this thread: 1 Guest(s)