30.09.2011, 16:32
I get "getArg" almost working but there are still problems I need to figure out. Will post the code when it's done soon. Here's another function which was a lot easier to make (but again unnecessary):
I tested a several times and it did work good for me.
pawn Код:
stock numArgs()
{
// Get the adress
#emit LOAD.S.PRI 0
// Skip over the function header
#emit ADD.C 8
// Load the address
#emit LOAD.I
// Convert from bytes to cells
#emit SHR.C.PRI 2
// Return the value
#emit RETN
// Return a random value to ignore the warning
return 0;
}

