SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 25/09/2012, 04:47 PM   #1
Snir_sofer
Little Clucker
 
Join Date: Jul 2010
Posts: 45
Reputation: 1
Default Emit Help

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 :\
Snir_sofer is offline   Reply With Quote
Old 25/09/2012, 04:53 PM   #2
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Re: Emit Help

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

return 0;
__________________

Sup?
RyDeR` is offline   Reply With Quote
Old 25/09/2012, 06:54 PM   #3
Snir_sofer
Little Clucker
 
Join Date: Jul 2010
Posts: 45
Reputation: 1
Default Re: Emit Help

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
Snir_sofer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
#emit rVar Scripting Help 2 08/09/2012 07:26 PM
Help with #emit _Petrol_ Scripting Help 0 23/08/2012 04:54 PM
#emit Max_Coldheart Scripting Help 6 08/03/2012 09:17 PM


All times are GMT. The time now is 04:37 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.