y_ini help.
#1

Код:
public LoadSkins()
{
	new skins[128];
	format(skins, sizeof(skins), "GP/Inne/Skiny.ini");
	INI_Load(skins, true);
	return 1;
}
INI:skins[](name[], value)
{
	new fl[128];
	for(new i = 0; i <= MAX_SKINS; i++)
	{
	    new Owned, OwnerName[128];
		format(fl, sizeof(fl), "Skin%d_Owned", i); INI_Int(fl, Owned);//argument 1 error
		format(fl, sizeof(fl), "Skin%d_Owner", i); INI_String(fl, OwnerName, sizeof(OwnerName));//both argument 2 errors.
	}
	return 1;
}
What's wrong with it? It shows me those errors
Код:
error 035: argument type mismatch (argument 1)
error 035: argument type mismatch (argument 2)
error 035: argument type mismatch (argument 2)
Reply
#2

Ask in the Y_ini thread, that's your best bet.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)