Strange #include behaviour?
#1

Hello!

I've been trying to organize my gamemode in multiple files to make it look "cleaner", but I've ran into some issues lately and I can't find any explaination for them. Sometimes, when I use #include I can't include multiple files from the same folder. (* I'm not sure, but it this might be true, look down to see which files are included and which aren't.)

This is my main gamemode:

main.pwn
pawn Код:
#include <a_samp>

// ... a few 'system' includes

// ... some variables

#include "packages/mysql/header.pwn"    // yes, included
#include "packages/mysql/package.pwn"   // yes, included

// ... some more includes ...
packages/mysql/package.pwn
pawn Код:
#include "packages/mysql/cache/cache_get_field_content_float.pwn"   // yes, included
#include "packages/mysql/cache/cache_get_field_content_int.pwn"     // no, not included
#include "packages/mysql/cache/cache_get_row_float.pwn"             // no
#include "packages/mysql/cache/cache_get_row_int.pwn"               // no
#include "packages/mysql/event/OnQueryError.pwn"                    // yes
#include "packages/mysql/event/OnQueryFinish.pwn"                   // no
#include "packages/mysql/mysql_fetch_field_row_float.pwn"           // yes
#include "packages/mysql/mysql_fetch_field_row_int.pwn"             // no
All files exist and packages/mysql/*.pwn files are filled with some random functions, I've tried modifying them, but the output is the same.

EDIT: A guy on the IRC recommended me to use #include file_name instead of #include "file_name", but no differences.
Reply


Messages In This Thread
Strange #include behaviour? - by Dan.. - 13.08.2012, 15:10
Re: Strange #include behaviour? - by Dan.. - 13.08.2012, 15:14
Re: Strange #include behaviour? - by FalconX - 13.08.2012, 15:14
Re: Strange #include behaviour? - by Vince - 13.08.2012, 15:15
Re: Strange #include behaviour? - by Dan.. - 13.08.2012, 15:17
Re: Strange #include behaviour? - by Vince - 13.08.2012, 15:21
Re: Strange #include behaviour? - by Dan.. - 13.08.2012, 15:24
Re: Strange #include behaviour? - by Dan.. - 13.08.2012, 16:51
Re: Strange #include behaviour? - by Dan.. - 13.08.2012, 17:39
Re: Strange #include behaviour? - by Dan.. - 13.08.2012, 19:59

Forum Jump:


Users browsing this thread: 1 Guest(s)