17.09.2015, 13:19
Quote:
|
Hi,
Great! Now you should compile your GameMode in debug mode so CrashDetect can output more useful information (like the exact line on which the error occurs). To do so you need to pass the flag "-d3" to the Pawn compiler, you can easily do this by creating a "pawn.cfg" file inside the Pawno folder with the following contents: Code:
-r -O0 -d3 ![]() Also, put here your OnPlayerTakeDamage, globalPlayerLoop2, SetPlayerUnjail and SaveData. |
Code:
public SaveData()
{
foreach(Player, x)
{
savePlayerData(x);
}
for(new xh = 0; xh < MAX_HOUSES; xh++)
{
saveHouse(xh);
}
for(new xf = 0; xf < MAX_GROUPS; xf++)
{
saveGroup(xf);
}
for(new xc = 0; xc < MAX_CLANS; xc++)
{
saveClan(xc);
}
for(new xf = 0; xf < MAX_BUSINESSES; xf++)
{
saveBusiness(xf);
}
for(new xf = 0; xf < MAX_ASSETS; xf++)
{
saveAsset(xf);
}
for(new ff = 0; ff < 613; ff++)
{
saveDealer(ff);
}
}



