Modular GM - include functions won't load
#1

Hello peeps,

I currently work on gm from scratch and also its modular. I have pretty simple structure. The problem is once I compile gamemode, i get bunch of error 017: undefined symbol errors in my compile log. All functions that are shown in compiler log are defined inside corresponding file. I can even navigate with them with F12 shortcut in sublime.

Following code shows how I added them into my gamemode:

PHP код:
#include "/include/core/log_core.pwn"
#include "/include/core/db_core.pwn"
#include "/include/core/dialogs_enum.pwn"
#include "/include/core/gm_macro.pwn"
#include "/include/core/gm_func.pwn"
#include "/include/serverSys/server_core.pwn"
#include "/include/serverSys/server_func.pwn"
#include "/include/serverSys/server_cmd.pwn"
#include "/include/igraci/igraci_core.pwn"
#include "/include/igraci/igraci_func.pwn"
#include "/include/regloginSys/login_core.pwn"
#include "/include/regloginSys/login_td.pwn"
#include "/include/regloginSys/login_func.pwn"
#include "/include/regloginSys/register_core.pwn"
#include "/include/regloginSys/register_td.pwn"
#include "/include/regloginSys/register_func.pwn" 
This is at top of the main.pwn file.

I'm using Sublime text editor 3 as Editor, but in Pawno also problem happens.

If needed my build params are:

PHP код:
{
    
"cmd": ["pawncc.exe""-i includes""$file""-d3""-Z+""-;+"],
    
"path""E:/GitWorkspace/gtasaglobalg/compiler"

Also here is one image that function that is shown in compiler log is defined. Functions are called after includes from the main.pwn.

If you need more info about anything, feel free to ask me.
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
Try make your paths shorter.
Thank you fam. You the real mvp.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)