Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0AD4

Opcode Database

0AD4

DescriptionScans a string and writes the result to the variables, returns the number of successful transformations. Sets the result of logical operation TRUE, if the number of successful transformation coincided with a number of optional parameters (in other words, if all parameters were successfully read), otherwise - FALSE.

In the example, if 0@v was "5 + 2 = 7", 5@ would contain 5, 6@ would contain 2 and 7@ would contain 7. 4@ would contain 3. The line would return TRUE.

Params
1. variable, which the number of successful reforms will be written to.
2. Scannable line corresponds to convention on the line.
3. The format scanning responsible convention on one line.
4. Variables, which will be recorded the result of transformations (up to 35 parameters).
Parameters (v2)1) String (ANY)
2) String (ANY)
3) (Returned) Integer (INT)
4) (Returned) Call arguments (...)
Gamessa
CategoryCLEO 4
San Andreas
sascm.ini0AD4=-1, scan_string %1d% format %2s% store_num_results_to %3d%
Example0AD4: scan_string 0@v format "%d + %d = %d" store_num_results_to 4@ 5@ 6@ 7@
Command NameSCAN_STRING

<< 0AD3

0AD5 >>