SA-MP Forums Archive
y_ini help. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: y_ini help. (/showthread.php?tid=242829)



y_ini help. - sekol - 20.03.2011

Код:
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)



Re: y_ini help. - Stigg - 20.03.2011

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