Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0AB2

Opcode Database

0AB2

DescriptionThis opcode transfers the thread execution back to the 0AB1 opcode and stores the returned values in its variables. Total number of returned values must equals to the number of variables storing the result in the 0AB1. In this example the 0AB2 returns one value, which is the value of the variable 0@, this value will be copied to the variable 0@ (see 0AB1 example). If the 0AB2 opcode does not return any values, it must have a 0 as the only parameter, and proper 0AB1 that calls such a function should have no variables to store.

Parameters:
1 = number of values to return
After that there are the returned values.
Parameters (v2)1) Integer (INT)
2) Call arguments (...)
Gamessa
CategoryCLEO 3
San Andreas
sascm.ini0AB2=-1,ret %1d%
Example0AB2: ret 1 0@
Command NameRET

<< 0AB1

0AB3 >>