Compiling without PAWNO (Different location) - 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)
+---- Forum: Discussion (
https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: Compiling without PAWNO (Different location) (
/showthread.php?tid=642780)
Compiling with pawncc only -
Fratello - 07.10.2017
Hello.
How can I compile a code without PAWNO. I'm using Windows Command Console and I've entered pawncc compiler but I'm facing a problem. How can I tell the compiler to compile file without IT being inside pawn folder.
I tried using -D(path) but I'm not sure I'm using it in a correct way.
HTML Code:
C:\Users\Me\Desktop\SA-MP\pawno>pawncc -Dgamemodes/gamemode.pwn gamemode.pwn -r -w
Before removing gamemode.pwn from pawno folder:
HTML Code:
C:\Users\Me\Desktop\SA-MP\pawno>pawncc gamemode.pwn -r -w
Pawn compiler 3.2.3664
I'm using default configed params (-r -w)
After removing an error occurs. (Cannot find 'gamemode.pwn' ... )
and yes I tried looking at param list but nothing came out.
Re: Compiling without PAWNO (Different location) -
renatog - 07.10.2017
-D arg needs an absolute path (D:/Example/gamemodes/)
So you need to execute
Code:
pawncc gamemode.pwn -DD:/Example/gamemodes/
It will create the .amx file in the same dir (D:/Example/gamemodes/)
Re: Compiling without PAWNO (Different location) -
Fratello - 07.10.2017
Thanks!
By the way do I need to put -r and -w params? I can't understand description for it
-r = write cross reference report to console or to specified file
-w = disable a specific warning by its number
Re: Compiling without PAWNO (Different location) -
renatog - 07.10.2017
Quote:
Originally Posted by Fratello
Thanks!
By the way do I need to put -r and -w params? I can't understand description for it
-r = write cross reference report to console or to specified file
-w = disable a specific warning by its number
|
You don't need them.