Jump to content

Making opcode


Ify24

Recommended Posts

HY everyone.

 

I have a question...

 

Is there any way to make a new opcode for GTA:SA... ???

 

Like with C++ you can make your own keyword like :

 

keyword{usingnamespaceint return}

 

 

So when you use 'keyword' in code that means that will do everything in { } ....

So is there any way to make something like that for GTA:SA script ???

(even with C++ ??? )

Link to comment
Share on other sites

CLEO4 Installer includes CLEO SDK for making new opcodes via .cleo-plugins.

Link to comment
Share on other sites

It's possible, however to be honest I don't understand people who are pretty beginning in SCM modding and already want to expand its possibilities. Current CLEO opcodes are enough to make almost EVERYTHING.

Link to comment
Share on other sites

You'd be better off with SCM Functions using CLEO 3.

 

 

:MyFunction005B: 0@ += 1@005B: 0@ += 2@01FB: 3@ = square_root 0@0AB2: ret 1 3@   // return the result

 

Put that somewhere at the bottom of your code page (where it won't get run into). And use this to call it:

 

0AB1: call_scm_func @MyFunc num_params 3 params 1234.5 1234.5 123.4 store_result_to 0@

 

Link to comment
Share on other sites

 

You'd be better off with SCM Functions using CLEO 3.

 

 

:MyFunction005B: 0@ += 1@005B: 0@ += 2@01FB: 3@ = square_root 0@0AB2: ret 1 3@   // return the result

 

Put that somewhere at the bottom of your code page (where it won't get run into). And use this to call it:

 

0AB1: call_scm_func @MyFunc num_params 3 params 1234.5 1234.5 123.4 store_result_to 0@

 

Ok.. I will try it later... I have a lot of work to do ( I am learning C++ too, not just script coding biggrin.gif )

So tnq for help...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.