28.10.2012, 05:52
Once a script is complied in .amx format, then some of it is generated into a unreadable format (pcode / AMX opcodes/instructions) so the samp-server.exe executable can run it.
Also, this might be very interesting. I recently opened an .amx file and noticed that some code is surrounded by the Ђ character. If you remove all instances of that character, you'll notice some readable .pwn code!
EDIT: About the first post, using the #include directive would pull anything from the specified include file and automatically add it into the .amx, so if you have this gamemode:
And stuff.inc contained something along the lines of:
Your script would compile as:
Also, this might be very interesting. I recently opened an .amx file and noticed that some code is surrounded by the Ђ character. If you remove all instances of that character, you'll notice some readable .pwn code!
EDIT: About the first post, using the #include directive would pull anything from the specified include file and automatically add it into the .amx, so if you have this gamemode:
pawn Code:
// My Gamemode
#include <a_samp>
#include <stuff>
pawn Code:
#include <a_samp>
stock my_function()
{
print("Your function is cool.");
}
pawn Code:
// My Gamemode
#include <a_samp>
#include <a_samp>
stock my_function()
{
print("Your function is cool.");
}