Seit heute morgen um 7 Uhr startet mein Server nicht mehr. Ich habe bisschen am Haus-System gearbeitet und crashdetect spuckt folgendes aus:
[09:26:30] [debug] #0 native mysql_fetch_field () from MySQL.so
[09:26:30] [debug] #1 00086a60 in public LoadProperty () from IR.amx
[09:26:30] [debug] #2 000d8960 in public Itter_OnGameModeInit () from IR.amx
[09:26:30] [debug] #3 native CallLocalFunction () from samp03svr
[09:26:30] [debug] #4 000024dc in public OnGameModeInit () from IR.amx
An der Stelle, wo eigentlich LoadProperty aufgerufen werden soll, wird nichts mehr in die serverlog eingetragen. Hier der Code von LoadProperty
public LoadProperty()
{
new string[128];
for(new i = 0; i < sizeof(HouseInfo); i++)
{
format(string, sizeof(string),"SELECT * FROM `houses` WHERE `HouseID` = '%d'", i);
mysql_query(string);
mysql_store_result();
if(mysql_num_rows() != 0)
{
new val[ 256 ];
mysql_fetch_field("Owner", val); strmid(HouseInfo[i][hOwner], val, 0, strlen(val), 255);
mysql_fetch_field("Beschreibung", val); strmid(HouseInfo[i][hBeschreibung], val, 0, strlen(val), 255);
mysql_fetch_field("Preis", val); HouseInfo[i][hPreis] = strval( val );
mysql_fetch_field("HealUpgrade", val); HouseInfo[i][hHealUpgrade] = strval( val );
mysql_fetch_field("ArmorUpgrade", val); HouseInfo[i][hArmorUpgrade] = strval( val );
mysql_fetch_field("Lock", val); HouseInfo[i][hLock] = strval( val );
mysql_fetch_field("Owned", val); HouseInfo[i][hOwned] = strval( val );
mysql_fetch_field("Rooms", val); HouseInfo[i][hRooms] = strval( val );
mysql_fetch_field("Rent", val); HouseInfo[i][hRent] = strval( val );
mysql_fetch_field("Rentabil", val); HouseInfo[i][hRentabil] = strval( val );
mysql_fetch_field("Kasse", val); HouseInfo[i][hKasse] = strval( val );
//mysql_fetch_field("Date", val); HouseInfo[i][hDate] = strval( val );
mysql_fetch_field("Level", val); HouseInfo[i][hLevel] = strval( val );
mysql_fetch_field("VW", val); HouseInfo[i][hVW] = strval( val );
mysql_fetch_field("Local", val); HouseInfo[i][hLocal] = strval ( val );
}
mysql_free_result();
}
return 1;
}
printf's werden bis 5: mysql_num_rows() != 0 in die Serverlog geschrieben.
Ich hoffe das mir jemand helfen kann, einige Spieler und ich würde uns über eure Hilfe sehr freuen!
Edit: Ich habe mal LoadProperty und OnPropUpdate ausgeklammert, dann schmeißt Crashdetect das selbe bei LoadBiz raus oder auch CreateGangAutos (an beiden den System habe ich garnichts gemacht). Wie könnte ich den Fehler weiter eingrenzen?
Edit 2: Ich entschuldige mich für die Edits, habe jetzt die angeblich betroffenen Zeilen:
[17:44:02] [debug] #0 native mysql_fetch_field () from MySQL.so
[17:44:02] [debug] #1 000af8ac in public LoadProperty () at C:\Users\Name\Desktop\Script\gamemodes\IR.pwn:14916
[17:44:02] [debug] #2 001168e8 in public Itter_OnGameModeInit () at C:\Users\Name\Desktop\Script\gamemodes\IR.pwn:18093
[17:44:02] [debug] #3 native CallLocalFunction () from samp03svr
[17:44:02] [debug] #4 00002cd0 in public OnGameModeInit () at C:\Users\Varrez\Desktop\Script\pawno\include\foreach.inc:689
[17:44:02] [debug] Native backtrace:
[17:44:02] [debug] #0 f694c180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[17:44:02] [debug] #1 f6944064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[17:44:02] [debug] #2 f6944d64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[17:44:02] [debug] #3 f6946cdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[17:44:02] [debug] #4 f694b4d5 in ?? () from plugins/crashdetect.so
[17:44:02] [debug] #5 f7709e20 in ?? ()
[17:44:02] [debug] #6 f7370b79 in _ZN5MySQL11fetch_fieldEPKc () from plugins/MySQL.so
[17:44:02] [debug] #7 f73736d7 in _ZN7Natives19n_mysql_fetch_fieldEP6tagAMXPi () from plugins/MySQL.so
[17:44:02] [debug] #8 080950b4 in ?? () from ./samp03svr
[17:44:02] [debug] #9 f6945ad3 in _ZN11CrashDetect17HandleAMXCallbackEiPiS0_ () from plugins/crashdetect.so
[17:44:02] [debug] #10 081548be in ?? () from ./samp03svr
Alles anzeigen
//14916mysql_fetch_field("Owner", val); strmid(HouseInfo[i][hOwner], val, 0, strlen(val), 255);
LoadProperty();printf("OnGamemodeInt: LoadProperty");//18093:
Liebe Grüße
Crowley