Compiler runs forever -
dusk - 06.09.2013
Hello, my problem is that when i try to compile, it just compiles and compiles and compiles, it doesn't stop. (no "pawncc has stopped responding").
The thing is, i wanted to move my house system to an include, i did that. Then i included it by doing:
pawn Code:
#include "data/houseSystem"
If i copy the content of "houseSystem" instead of that include line, it's okay.
So i don't understand, doesn't #include actually do that, copy?
Re: Compiler runs forever -
Misiur - 06.09.2013
Try \ instead of /. Infinite loops are caused usually by recursive definitions, but in this case it might be screwed up inclusion guard in a file trying to include itself.
Re: Compiler runs forever -
dusk - 06.09.2013
No change, but thanks for trying...
Re: Compiler runs forever -
Threshold - 06.09.2013
So let me get this straight, you are looking for a file located in 'pawno/includes/data/houseSystem' ??
Otherwise, let us know the directory of the file.
Re: Compiler runs forever -
dusk - 06.09.2013
The file is located ad "server/gamemodes/data/houseSystem".
I saw this done many many times, and ****** once posted something about includes not necessarily being in the pawno/include folder...
But just to be sure, i moved them to plugins/include, and yet the same outcome
Re: Compiler runs forever -
Dragonsaurus - 06.09.2013
Ehm, you should do it like this (Don't remove the dots):
pawn Code:
#include "..gamemodes/data/houseSystem"
Re: Compiler runs forever -
safdev - 06.09.2013
This happened to me to fix it, delete all other related SA-MP folders from your desktop.
Re: Compiler runs forever -
dusk - 06.09.2013
Quote:
Originally Posted by Dragonsaurus
Ehm, you should do it like this (Don't remove the dots):
pawn Code:
#include "..gamemodes/data/houseSystem"
|
pawn Code:
rp.pwn(571) : fatal error 100: cannot read from file: "..gamemodes/data/houseSystem"
shouldn't the two dots only back up to pawno directory?
Quote:
Originally Posted by safdev
This happened to me to fix it, delete all other related SA-MP folders from your desktop.
|
Didn't help
Re: Compiler runs forever -
Misiur - 06.09.2013
pawn Code:
#include "..\..\gamemodes\data\houseSystem"
Re: Compiler runs forever -
Konstantinos - 06.09.2013
Quote:
Originally Posted by Misiur
pawn Code:
#include "..\..\gamemodes\data\houseSystem"
|
Useful one! Thanks.