OnFilterScriptExit not being called?
#1

Hey, I'm using a property system, and it doesn't seem to be calling OnFliterScriptExit, which is making it not able to save bought property, which is a problem.

I know it's not being called because there's a "printf" on it, and it's not showing up in the logs.

Here's the OnFilterScriptExit callback, if you need anymore info/code, ask me.

Код:
public OnFilterScriptExit()
{
	new entry[256];
	new File: propfile = fopen("PropertySystem/PropertyInfo.txt", io_write);
	for(new id; id<PropertiesAmount; id++)
	{
	  format(entry, 128, "%s,%.2f,%.2f,%.2f,%d,%d,%s,%d,%d \r\n",PropInfo[id][PropName], PropInfo[id][PropX], PropInfo[id][PropY], PropInfo[id][PropZ], PropInfo[id][PropValue], PropInfo[id][PropEarning], PropInfo[id][PropOwner], PropInfo[id][PropIsBought], PropInfo[id][PropUnbuyableTime]);
		fwrite(propfile, entry);
	}
	printf("Saved %d Properties!", PropertiesAmount);
	fclose(propfile);
	return 1;
}
Reply


Messages In This Thread
OnFilterScriptExit not being called? - by _Vortex - 03.11.2009, 17:16
Re: OnFilterScriptExit not being called? - by MadeMan - 03.11.2009, 17:35
Re: OnFilterScriptExit not being called? - by _Vortex - 03.11.2009, 17:39
Re: OnFilterScriptExit not being called? - by MadeMan - 03.11.2009, 17:42
Re: OnFilterScriptExit not being called? - by Nero_3D - 03.11.2009, 17:42
Re: OnFilterScriptExit not being called? - by Andom - 03.11.2009, 17:49
Re: OnFilterScriptExit not being called? - by _Vortex - 03.11.2009, 22:02

Forum Jump:


Users browsing this thread: 5 Guest(s)