Posts: 168
Threads: 57
Joined: Oct 2009
Reputation:
0
Hello
How i can include .pwn files ( #include "filename.pwn"), i need for it something?
Now i am including and it says: Can`t read file: filename.pwn.
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
You can't they must be include files with the .inc extension not PAWN files with the .pwn extension.
How to make .inc file:
When you save your file (include) click "file" > "save as" then in the "save as type" dropbox pick "all files" instead of default "PAWN files" and when you name your file give it the .inc extension. Eg, myinclude.inc
There's your include.
Posts: 1,679
Threads: 232
Joined: Nov 2009
Reputation:
0
#include "includehere" its not something that you include a filterscript or a gamemode into your pawn script..#include is needeed to use some fuctions that you have download which are files .inc(.include) those includes are bases to make some functions so basically tou can not include pawn files... only .inc
Posts: 168
Threads: 57
Joined: Oct 2009
Reputation:
0
17.01.2012, 10:51
(
Последний раз редактировалось Larry123; 17.01.2012 в 12:01.
)
cannot read from file: "Roleplay/objects.inc"
Posts: 168
Threads: 57
Joined: Oct 2009
Reputation:
0
Then where i put my included .pwn file?
Posts: 168
Threads: 57
Joined: Oct 2009
Reputation:
0
17.01.2012, 11:12
(
Последний раз редактировалось Larry123; 17.01.2012 в 12:06.
)
It don`t load it still: Cant read file: "objects.pwn"
Posts: 539
Threads: 24
Joined: Nov 2008
Reputation:
0
If you want to include it from another folder inside your 'gamemodes' folder then do this
#include "/gamemodes/Test/FPS.pwn"
^^ obviously substitute your folder names for mine...
Also, can i ask what is with everyone posting an answer when they obviously don't know if its correct or not... Guys if you teach a child to that what we all know as blue is called pink then thats what they will think is true. Don't mis-inform people :P if your not sure then just don't post!