Difference between revisions of "0051"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{OpCode | games = {{Icon|t}} | command = RETURN | description = Return from the current subroutine. | syntax1 = 0051: return | p1t = ''none'' }} After...")
 
Line 7: Line 7:
 
}}
 
}}
  
After [[0050]] is called, when the thread encounters a [[0051]], it will return from where the last [[0050]] was called.
+
This opcode returns from the current subroutine.
 +
When the thread encounters a [[0051]], it will return from where the last [[0050]] was called.
  
 
The game will crash if:
 
The game will crash if:

Revision as of 12:10, 2 August 2017

GTA III Vice City San Andreas RETURN


Description
Return from the current subroutine.
Syntax
0051: return
Parameter
none

This opcode returns from the current subroutine. When the thread encounters a 0051, it will return from where the last 0050 was called.

The game will crash if:

  • 0051 was read before any 0050 was called.

Keywords

subroutine, gosub, go sub