include not work linking?
#1

So i make include to my gamemode
pawn Код:
// filename gamemode.pwn
#include "liba/file.pwn"
when i include liba/file.pwn libb/ which in liba

directory tree
Код:
gamemodedir
|---liba
    |---libb
code is like:
pawn Код:
// filename liba/file.pwn
#include "libb/custom.pwn"
I will get in compiler respond:
liba/file.pwn(16) : fatal error 100: cannot read from file: "libb/custom.pwn"
Reply
#2

An include is a .inc file, not a .pwn file. And also keep in mind that includes are placed in the pawno/includes folder, not in gamemodes/includes...
Reply
#3

You could link another script by using filterscripts. You can add filterscript to your server.cfg.

As the dude above me already said, it's not possible to include a .pwn.
Reply
#4

May you explain then why work /liba/libb/custom.pwn including?
Reply
#5

Sorry, I don't understand you man.
Reply
#6

When i change
pawn Код:
// filename liba/file.pwn
#include "libb/custom.pwn"
to
pawn Код:
// filename liba/file.pwn
#include "liba/libb/custom.pwn"
I won't get error...
Reply
#7

Por favor, vaya a la secciуn del foro dedicada.

Ga naar uw toegewijde forum sectie.

Bitte gehen Sie auf Ihre speziellen Forum Abschnitt.

S'il vous plaоt aller а votre section du forum dйdiйe.

Prosimo, pojdite na oddelek, namenjen forum.

---

Translated "Please go to your dedicated forum section" into some of the most common languages, hopefully you'll know one of of those.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)