13.08.2012, 15:10
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
packages/mysql/package.pwn
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.
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 ...
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
EDIT: A guy on the IRC recommended me to use #include file_name instead of #include "file_name", but no differences.