Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0871

Opcode Database

0871

DescriptionTakes an input value and uses it to determine which label to go to in the code.

In the example, if the value of $VIDEO_GAME was 3, the code would go to the label 'MS_GAME_LETSGETREADYTOBUMBLE'. If no value is matched, the default label pointer is used.
Parameters (v2)1) Integer (INT)
2) Integer (INT)
3) Integer (INT)
4) Label pointer (Integer) (LABEL)
5) Integer (INT)
6) Label pointer (Integer) (LABEL)
7) Integer (INT)
8) Label pointer (Integer) (LABEL)
9) Integer (INT)
10) Label pointer (Integer) (LABEL)
11) Integer (INT)
12) Label pointer (Integer) (LABEL)
13) Integer (INT)
14) Label pointer (Integer) (LABEL)
15) Integer (INT)
16) Label pointer (Integer) (LABEL)
17) Integer (INT)
18) Label pointer (Integer) (LABEL)
Gamessa
Category
San Andreas
sascm.ini0871=18,switch_start %1d% cases %2h% def %3h% %4p% case %5h% %6p% %7h% %8p% %9h% %10p% %11h% %12p% %13h% %14p% %15h% %16p% %17h% %18p%
Example0871: switch_start $VIDEO_GAME cases 8 def 0 @END_CASE_VIDEO_GAME case 0 @MS_GAME_THEYCRAWLEDFROMURANUS 1 @MS_GAME_DUALITY 2 @MS_GAME_GOGOSPACEMONKEY 3 @MS_GAME_LETSGETREADYTOBUMBLE 4 @MS_GAME_TRACKBETTING 5 @MS_GAME_POOL 6 @MS_GAME_LOWRIDER
Command NameSWITCH_START

<< 0870

0872 >>