Problems with saving Ini file
#4

To declare a variable you need to use the following code

new File: some_file,some_integer;

In your code you are doing File: some_file directly.The compiler will think that some_file is already declared and will search for it.Since you are making a new variable you need to prefix it with new.

Replace this
Код:
File:    ini_CurrentFile, // 340
        ini_Temp[MAX_RECORD_LENGTH],
        ini_OsLineEndLen = 2,
        ini_OsLineEndChar[5],
bool:    ini_FileOpen,
        ini_KeyData[MAX_RECORDS][MAX_KEY_LENGTH],
        ini_ValData[MAX_RECORDS][MAX_VAL_LENGTH];
With

Код:
new File:    ini_CurrentFile, // 340
        ini_Temp[MAX_RECORD_LENGTH],
        ini_OsLineEndLen = 2,
        ini_OsLineEndChar[5],
bool:    ini_FileOpen,
        ini_KeyData[MAX_RECORDS][MAX_KEY_LENGTH],
        ini_ValData[MAX_RECORDS][MAX_VAL_LENGTH];
Reply


Messages In This Thread
Problems with saving Ini file - by lwilson - 30.05.2015, 13:51
Re: Problems with saving Ini file - by Yashas - 30.05.2015, 16:23
Re: Problems with saving Ini file - by lwilson - 31.05.2015, 02:26
Re: Problems with saving Ini file - by Yashas - 31.05.2015, 06:08

Forum Jump:


Users browsing this thread: 1 Guest(s)