include not work linking? -
whitedragon - 27.11.2011
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"
Re: include not work linking? -
Scenario - 27.11.2011
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...
Re: include not work linking? -
Nodroz - 27.11.2011
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.
Re: include not work linking? -
whitedragon - 27.11.2011
May you explain then why work /liba/libb/custom.pwn including?
Re: include not work linking? -
Nodroz - 27.11.2011
Sorry, I don't understand you man.
Re: include not work linking? -
whitedragon - 27.11.2011
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...
Re: include not work linking? -
Scenario - 27.11.2011
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.