Including another .pwn file
#1

I've done it before, but I'm just derping right now. How would I do this?

test.pwn is in /gamemodes/inc


Code to include the .pwn file
pawn Код:
#include <./gamemodes/inc/test.pwn>
Error
Код:
***.pwn(7) : fatal error 100: cannot read from file: "./gamemodes/inc/test.pwn
Reply
#2

You should put test file to include folder.



And use this code

pawn Код:
#include <../include/test.pwn>
Reply
#3

Quote:
Originally Posted by MasonSFW
Посмотреть сообщение
You should put test file to include folder.



And use this code

pawn Код:
#include <../include/test.pwn>
Same thing

Код:
***.pwn(7) : fatal error 100: cannot read from file: "../include/test.pwn"
Reply
#4

Or just change

pawn Код:
#include <./gamemodes/inc/test.pwn>
to

pawn Код:
#include <../gamemodes/inc/test.pwn>
Reply
#5

Oh, <> doesn't work for me, but quotation marks do! Thanks for the help.

Example for anyone that needs help with this:
pawn Код:
#include "../gamemodes/inc/test.pwn"
Reply
#6

NVM
pawn Код:
#include "../gamemodes/inc/test.pwn" // the " " " intended for different file extension like .pwn .p .txt
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)