y_ini problem
#1

forgiveness for asking about Yini again, I am sure they are tired of reading about Yini questions, and have read the post about how to use it but just do not find that I'm doing wrong ...

here is my code

pawn Code:
new gCID;

main()
{
            new file[128];
            file = "/Clanes/index.ini";
            INI_ParseFile(file, "load_index");

}

forward load_index(name[], value[]);
public load_index(name[], value[])
{ //this is the line 1056
    INI_Int("count",gCID); //this is the line 1057
    return 0; //this is the line 1058
}
and i get these errors
Code:
...\gamemodes\WWSOB.pwn(1057) : error 012: invalid function call, not a valid address
...\gamemodes\WWSOB.pwn(1057) : error 001: expected token: ";", but found ")"
...\gamemodes\WWSOB.pwn(1057) : error 029: invalid expression, assumed zero
...\gamemodes\WWSOB.pwn(1057) : fatal error 107: too many error messages on one line
thanks for the answers

I should mention that I'm using the older version of YSI, but I can not upgrade because I'm using systems that do not come in the new version.
Reply


Messages In This Thread
[No subject] - by [SOB]Chris - 24.07.2011, 07:03
Re: y_ini problem - by [SOB]Chris - 24.07.2011, 16:23

Forum Jump:


Users browsing this thread: 1 Guest(s)