03.11.2009, 17:16
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.
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; }