Compiler stops working when including a file using backslashes
#1

I have always included files using FORWARD slashes, for example:

pawn Код:
#include "files/scripts/test.inc"
But ****** recommended that I use BACKslashes instead, so I have started to. But there's one file that will include fine with forward slashes, but if I try and use BACKslashes, the compiler crashes..

This file is pretty much empty. It only has this in it:

pawn Код:
#define ADMIN_LEVEL_MOD 1
#define ADMIN_LEVEL_ADMIN 2
#define ADMIN_LEVEL_MANAGER 3
#define ADMIN_LEVEL_OWNER 4

new const AdminLevel[][] =
{
    "Player",
    "Moderator",
    "Admin",
    "Manager",
    "Owner"
};

new stock const AdminLevelPrefix[][] =
{
    "a player",
    "a moderator",
    "an admin",
    "a manager",
    "an owner"
};
This is the literal #include line:

pawn Код:
#include "files\scripts\staff\general.def"
To clarify exactly where this file is, my main .pwn file for my gamemode is in a folder called 'MNS' in the gamemodes directory, and inside that directory is another directory called 'files' which has all the other files in, which are included into the main .pwn file.

Using quotation marks in #include includes files that are relative to the file, so it's nothing to do with the pawno\include\ folder or using "..\" at the start.

Why is this happening? :/

Here's the directory itself, and the path:


All other files (at least 20) include perfectly fine with backslashes..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)