14.11.2010, 23:05
In this case it would look like this:
Array[0][(var1 == 1) ? (Var_1) : (Var_2)]
(if var1 == 1, then put Var_1 here, else Var_2)
There are some good examples in the wiki: https://sampwiki.blast.hk/wiki/Control_Structures#.3F:
Took me some time to understand it, too, it is a quite complex structure.
Array[0][(var1 == 1) ? (Var_1) : (Var_2)]
(if var1 == 1, then put Var_1 here, else Var_2)
There are some good examples in the wiki: https://sampwiki.blast.hk/wiki/Control_Structures#.3F:
Took me some time to understand it, too, it is a quite complex structure.