SA-MP Forums Archive
AMX Help. - 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: AMX Help. (/showthread.php?tid=325800)



AMX Help. - HighPitchedVoice - 14.03.2012

Why is my AMX getting deleted each time I compile my PWN file?


Re: AMX Help. - Twisted_Insane - 14.03.2012

Because it probably has got errors which need to be fixed?


Re: AMX Help. - SimonItaly - 14.03.2012

Does the compiler display any error?
Or you may have a wrong Pawno option, check "Build" -> "Run options" -> "Copy script to directory", it should be "\".


Re: AMX Help. - HighPitchedVoice - 14.03.2012

The only error I got is some error but it compiled and worked earlier...


Re: AMX Help. - SimonItaly - 14.03.2012

Does the compiler output display this?
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
or even this?
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:            <some> bytes
Code size:              <some> bytes
Data size:               <some> bytes
Stack/heap size:      <some> bytes; estimated max. usage=<some> cells (<some> bytes)
Total requirements:   <some> bytes;
Also, Pawno status bar should say "File 'X.pwn' has been compiled to 'X.amx'." or "Unable to compile "X.pwn".


Re: AMX Help. - HighPitchedVoice - 14.03.2012

The first code appears.


Re: AMX Help. - Twisted_Insane - 14.03.2012

That means it compiled successfully, which is the case I see negative.
Post us the result (the code) what it says when you compile!


Re: AMX Help. - HighPitchedVoice - 14.03.2012

I'm bed right now but I will post it tomorrow, olay? Please keep an eye on this thread.


Re: AMX Help. - HighPitchedVoice - 15.03.2012

Oh okay, it says compile aborted but this is the only error I got:
pawn Код:
#include <foreach>
pawn Код:
C:\Documents and Settings\------\Mina dokument\Downloads\SR-RP.pwn(6) : fatal error 100: cannot read from file: "foreach"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



Re: AMX Help. - nmader - 15.03.2012

You are missing the foreach include, I will give you a link for the download in a moment.