SA-MP Forums Archive
Include wouldn't included [will +REP] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Include wouldn't included [will +REP] (/showthread.php?tid=469405)



Include wouldn't included [will +REP] - qazwsx - 13.10.2013

Hello guys, today im having problem. Which, an include that ive just made, wouldnt include even ive include em with:
pawn Код:
#include <myinclude>
Ive put my include on My server folder>>Pawno>>Include.
But still didnt work.

Did i miss something up?

Please help me
thanks


Re: Include wouldn't included [will +REP] - xganyx - 13.10.2013

open your server packages (haved your include in there)

Then open the pawno.exe in { your server packages (haved your include in there)/pawno/pawno.exe }


Re: Include wouldn't included [will +REP] - Sublime - 13.10.2013

Is the file a .inc or .pwn?


Re: Include wouldn't included [will +REP] - qazwsx - 13.10.2013

Quote:
Originally Posted by Sublime
Посмотреть сообщение
Is the file a .inc or .pwn?
The file was .pwn


Re: Include wouldn't included [will +REP] - Sublime - 13.10.2013

Not supposed to be in pawno/includes folder. Make a new folder in your server package folder called files, and then add your .pwn file inside it. Example, I made a .pwn file called this.pwn. I moved it inside the files folder. I open my gamemode, and add this below the includes.

pawn Код:
#include "../files/this.pwn"
Hope you get it.

But make sure the script doesn't conflict with the gamemode!


Re: Include wouldn't included [will +REP] - qazwsx - 13.10.2013

Quote:
Originally Posted by Sublime
Посмотреть сообщение
Not supposed to be in pawno/includes folder. Make a new folder in your server package folder called files, and then add your .pwn file inside it. Example, I made a .pwn file called this.pwn. I moved it inside the files folder. I open my gamemode, and add this below the includes.

pawn Код:
#include "../files/this.pwn"
Hope you get it.

But make sure the script doesn't conflict with the gamemode!
I didn't understand it lol!

Anw, thanks for the help...
Is there any way to export it to .inc format??


Re: Include wouldn't included [will +REP] - iBeast - 13.10.2013

lol'd!

Open the pwn file in pawno.exe and go to 'File' menu dropdown on the upper left corner of the pawno.exe window you'll find 'Save As' click on it and another window will open it will ask you where to save the file and the file extension on that window under the file name input bar would be .pwn change it to 'all files' and save your pwn file as myinclude.inc in the name bar it will become an include.