22.09.2013, 05:05
Why this code has generation invalid instruction?
Out
pawn Код:
#include a_samp
stock Func(q)
{
return printf("Hello World: %d", q);
}
main()
{
printf("NON");
#emit LCTRL 6
#emit ADD.C 12
#emit PUSH.C 564 // FISRT PARAMETER
#emit PUSH.C 12
#emit PUSH.PRI
#emit CONST.PRI Func
#emit SCTRL 6
printf("NAIN");
}
Out
pawn Код:
[02:06:38] NON
[02:06:38] Hello World: 564
[02:06:38] Script[gamemodes/test.amx]: Run time error 6: "Invalid instruction"
[02:06:38] Number of vehicle models: 0
[02:06:39] --- Server Shutting Down.