Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0ADA

Opcode Database

0ADA

DescriptionScans the file and returns the successful number of matches.

Parameters matched to each wildcard are stored in the additional variables. In this example, 4 integers are written to variables 0@, 1@, 2@ and 3@.

Opcode returns TRUE if all wildcards are matched. Otherwise, it returns FALSE.

Params:
1. Variable to store the number of successful matches.
2. Pointer to the file.
3. String format for recording.
+. Arguments, substituted in the string (up to 35 arguments).
Parameters (v2)1) File handle (Integer) (INT)
2) String (ANY)
3) (Returned) Integer (INT)
4) (Returned) Call arguments (...)
Gamessa
CategoryCLEO 4
San Andreas
sascm.ini0ADA=-1, scan_file %1d% format %2d% store_num_results_to %3d%
Example0ADA: scan_file 0@ format "CLEO version: %d.%d.%d.%d" store_num_results_to 0@ 0@ 1@ 2@ 3@
Command NameSCAN_FILE

<< 0AD9

0ADB >>