03.07.2011, 10:09
By ******:
Quote:
INI_Int name[] - Name of the INI textual identifier. variable - Variable to store to. Macro to ease the loading of integers from INI files. Data is passed to the loading callback as a string, this will convert it to an integer (using sscanf if possible, normal functions if not) and save in the given variable. First checks that the name of the data passed matches the given name. Note that for this macro to work the variables MUST be called "name" and "value". Examples: Save an integer: pawn Код:
pawn Код:
|