#emit crash
#1

Why does this works
PHP код:
main()
{
    new 
t;
    
#emit LOAD.S.pri    t
    #emit PUSH.pri
    #emit PUSH.C         4
    #emit SYSREQ.C         SetWorldTime
    #emit LCTRL         4
    #emit LOAD.S.alt     8
    #emit ADD
    #emit SCTRL         4

But changing this line
PHP код:
new t
to this
PHP код:
new 19
doesn't work and shows this:
Quote:

[debug] Run time error 6: "Invalid instruction"
[debug] Unknown opcode 0x1300 at address 0x00000013
[debug] AMX backtrace:
[debug] #0 00000013 in main () from <unknown>
Script[gamemodes/z/t.amx]: Run time error 6: "Invalid instruction"

What opcode should I use to pass the var?
Reply


Messages In This Thread
#emit crash - by GaByM - 15.06.2018, 05:51
Re: #emit crash - by CodeStyle175 - 15.06.2018, 10:23
Re: #emit crash - by GaByM - 17.06.2018, 10:17
Re: #emit crash - by Calisthenics - 17.06.2018, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)