Y_INI read from ini, set variable
#5

Have this in gamemode code
pawn Code:
//load config file

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;
}
Following errors
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(200) : warning 235: public function lacks forward declaration (symbol "LoadSettings_info")
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)
Reply


Messages In This Thread
[No subject] - by Nathan_Taylor - 28.02.2013, 19:44
Re: Y_INI read from ini, set variable - by LarzI - 28.02.2013, 22:23
Re: Y_INI read from ini, set variable - by Nathan_Taylor - 28.02.2013, 22:30
Re: Y_INI read from ini, set variable - by 2KY - 01.03.2013, 00:00
Re: Y_INI read from ini, set variable - by Nathan_Taylor - 01.03.2013, 00:32
Re: Y_INI read from ini, set variable - by 2KY - 01.03.2013, 00:33
Re: Y_INI read from ini, set variable - by Nathan_Taylor - 01.03.2013, 00:35
Re: Y_INI read from ini, set variable - by 2KY - 01.03.2013, 00:48
Re: Y_INI read from ini, set variable - by Nathan_Taylor - 01.03.2013, 01:08
Re: Y_INI read from ini, set variable - by 2KY - 01.03.2013, 01:09

Forum Jump:


Users browsing this thread: 1 Guest(s)