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
#2

well this systemґs
YSI_player.own
YSI_player_ini.own
YSI_text.own
YSI_languages.own

damn im using it wrong
Code:
public CustomCallback_tag1(identifier[], text[])
{
	// Check if this is the "some_data" string and save it
	Player_LoadString("some_data", some_data_var);
	// Else check if it's some_int and convert to a number
	Player_LoadInt("some_int", some_int_var);
	// Else check if it's some_float and convert to a float
	Player_LoadFloat("some_float", some_float_var);
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)