Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0B14

Opcode Database

0B14

DescriptionPerforms a modular operation, returning the remainder of an integer division.

Examples
1 = 5 MOD 4 (when 5 is divided by 4, 1 is left)
2 = 6 MOD 4 (when 6 is divided by 4, 2 are left)
Parameters (v2)1) Integer (INT)
2) Integer (INT)
3) (Returned) Integer (INT)
Gamessa
CategoryIntOperations
San Andreas
sascm.ini0B14=3,modulo %1d% mod %2d% store_to %3d%
Example0B14: modulo 0@ mod 5 store_to 0@
Command NameMODULO

<< 0B13

0B15 >>