Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0AD7

Opcode Database

0AD7

DescriptionThis opcode retrieves data from a file into a buffer until it encounters a new line.

Params:
1. Pointer to the file.
2. String receiver.
3. Buffer size. Keep in mind the size of a variable string - 15 characters.

Will return false if the string could not be read (due to end of file reached).
Parameters (v2)1) File handle (Integer) (INT)
2) String (ANY)
3) Integer (INT)
Gamessa
CategoryCLEO 4
San Andreas
sascm.ini0AD7=3, read_string_from_file %1d% to %2d% size %3d%
Example0AD7: read_string_from_file 0@ to 1@v size 15
Command NameREAD_STRING_FROM_FILE

<< 0AD6

0AD8 >>