Emit Help
#1

PHP Code:
stock eResult(num1,num2)
{
    new 
n1 num1;
    new 
n2 num2;
    
#emit LOAD.S.pri n1
    #emit CONST.alt n2
    #emit ADD
    #emit STOR.S.pri n1
    
return n1;

OnGameModeInit:
print(eResult(5,5));
the result is: -3
i need result 10..
this not working good :\
Reply
#2

pawn Code:
#emit LOAD.S.PRI num1
#emit LOAD.S.ALT num2
#emit ADD
#emit RETN

return 0;
Reply
#3

Quote:
Originally Posted by RyDeR`
View Post
pawn Code:
#emit LOAD.S.PRI num1
#emit LOAD.S.ALT num2
#emit ADD
#emit RETN

return 0;
thank you RyDeR
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)