Compiling without PAWNO (Different location)
#1

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.
Reply
#2

-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/)
Reply
#3

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
Reply
#4

Quote:
Originally Posted by Fratello
View Post
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)