01.03.2013, 00:35
pawn Code:
//load config file
forward LoadSettings_info ( name[], value[] );
INI_ParseFile( "settings.ini", "LoadSettings_%s" );
public LoadSettings_info ( name[], value[] )
{
// Every time you write information to the settings file, you have to use INI_SetTag( fileVariable, "info" );
INI_Int("OOC", ooc);
return 1;
}
pawn Code:
F:\SAMP\gamemodes\naterp.pwn(198) : error 025: function heading differs from prototype
F:\SAMP\gamemodes\naterp.pwn(198) : error 021: symbol already defined: "INI_ParseFile"
F:\SAMP\gamemodes\naterp.pwn(204) : error 033: array must be indexed (variable "ooc")
F:\SAMP\gamemodes\naterp.pwn(206) : warning 217: loose indentation
F:\SAMP\gamemodes\naterp.pwn(206) : error 079: inconsistent return types (array & non-array)