Tag.
Ich habe momentan ein Problem. Ich möchte Informationen aus meiner Datenbank laden.
Folgendes:
PHP
mysql_fetch_field_row(result, "hID");
House[slot][hID] = strval(result);
// Bis hier crasht der Server nicht
mysql_fetch_field_row(result, "hCharID"); // <- Hier crasht es
House[slot][hCharID] = strval(result);
// Der Rest wird dadruch auch nicht ausgeführt, wenn ich die obere Zeile entferne ist der Crash-Grund eines der anderen Zeilen
Die Datenbank existiert, es sind die richtigen Zugangsdaten und die richtige Datenbank.
Wenn es darum geht meine Accountdaten zu laden, dann funktioniert es, aber bei den Häusern nicht.
Crashdetect ist drinnen und gibt folgendes aus:
Code
[13:30:53] [debug] Server crashed while executing ****.amx
[13:30:53] [debug] AMX backtrace:
[13:30:53] [debug] #0 native mysql_fetch_field_row () from mysql.DLL
[13:30:53] [debug] #1 000081d0 in houseLoadAllHouses () at P:\SAMP\****\pawno\include\system/user/u_house.inc:123
[13:30:53] [debug] #2 00009550 in public OnGameModeInit () at ****.pwn:106
[13:30:53] [debug] Native backtrace:
[13:30:53] [debug] #0 6e5db9f0 in ?? () from C:\WINDOWS\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9177_none_5093cc7abcb795e9\MSVCR90.dll
[13:30:53] [debug] #1 1000952e in ?? () from plugins\mysql.DLL
[13:30:53] [debug] #2 100067d3 in ?? () from plugins\mysql.DLL
[13:30:53] [debug] #3 004010b6 in ?? () from samp-server.exe
[13:30:53] [debug] #4 50ee62ca in ?? () from plugins\crashdetect.DLL
[13:30:53] [debug] #5 50ee8b28 in ?? () from plugins\crashdetect.DLL
[13:30:53] [debug] #6 50ee09c7 in ?? () from plugins\crashdetect.DLL
[13:30:53] [debug] #7 50ee631a in ?? () from plugins\crashdetect.DLL
[13:30:53] [debug] #8 50e74469 in ?? () from plugins\streamer.DLL
[13:30:53] [debug] #9 0046f654 in ?? () from samp-server.exe
[13:30:53] [debug] #10 65646f6d in ?? () from samp-server.exe
[13:30:53] [debug] #11 736c2f73 in ?? () from samp-server.exe
[13:30:53] [debug] #12 5f707263 in ?? () from samp-server.exe
[13:30:53] [debug] #13 69726373 in ?? () from samp-server.exe
[13:30:53] [debug] #14 612e7470 in ?? () from samp-server.exe
Alles anzeigen
MySQL Log:
Crashinfo:
Code
SA-MP Server: 0.3.7-R2
Exception At Address: 0x612E7470 Module: (Unknown)
Registers:
EAX: 0x08C51078 EBX: 0x00000001 ECX: 0x00000000 EDX: 0x027B7170
ESI: 0x0019FB44 EDI: 0x0000001B EBP: 0x69726373 ESP: 0x00515C10
EFLAGS: 0x00010246
Stack:
+0000: 0x0000786D 0x00000000 0x00000000 0x00000000
+0010: 0x00000000 0x00000000 0x00000000 0x00000000
+0020: 0x00000000 0x00000000 0x00000000 0x00000000
+0030: 0x00000000 0x00000000 0x00000000 0x00000000
+0040: 0x00000000 0x00000000 0x00000000 0x00000000
+0050: 0x00000000 0x00000000 0x00000000 0x00000000
+0060: 0x00000000 0x00000000 0x00000000 0x00000000
+0070: 0x00000000 0x00000000 0x00000000 0x00000000
+0080: 0x00000000 0x00000000 0x00000000 0x00000000
+0090: 0x00000000 0x00000000 0x00000000 0x00000000
+00A0: 0x00000000 0x00000000 0x00000000 0x00000000
+00B0: 0x00000000 0x00000000 0x00000000 0x00000000
+00C0: 0x00000000 0x00000000 0x00000000 0x00000000
+00D0: 0x00000000 0x00000000 0x00000000 0x00000000
+00E0: 0x00000000 0x00000000 0x00000000 0x19FF4081
+00F0: 0x00000000 0x022BD870 0x00000000 0x00000000
+0100: 0x00000000 0x00000000 0x00000000 0x00000000
+0110: 0x00000000 0x00000000 0x00000000 0x0000003F
+0120: 0x00000000 0x00000000 0x00000000 0x00000000
+0130: 0x00000000 0x00000000 0x00000000 0x00000000
--------------------------
Loaded Modules:
samp-server.exe A: 0x00400000 - 0x00519000 (P:\SAMP\***\samp-server.exe)
ntdll.dll A: 0x77B60000 - 0x77CDB000 (C:\WINDOWS\SYSTEM32\ntdll.dll)
KERNEL32.DLL A: 0x750D0000 - 0x751B0000 (C:\WINDOWS\SYSTEM32\KERNEL32.DLL)
KERNELBASE.dll A: 0x770F0000 - 0x7726E000 (C:\WINDOWS\SYSTEM32\KERNELBASE.dll)
SHELL32.dll A: 0x753C0000 - 0x767BE000 (C:\WINDOWS\SYSTEM32\SHELL32.dll)
msvcrt.dll A: 0x776F0000 - 0x777AE000 (C:\WINDOWS\SYSTEM32\msvcrt.dll)
cfgmgr32.dll A: 0x768D0000 - 0x76907000 (C:\WINDOWS\SYSTEM32\cfgmgr32.dll)
windows.storage.dll A: 0x74BD0000 - 0x750CA000 (C:\WINDOWS\SYSTEM32\windows.storage.dll)
combase.dll A: 0x76DD0000 - 0x76F8D000 (C:\WINDOWS\SYSTEM32\combase.dll)
RPCRT4.dll A: 0x76910000 - 0x769BD000 (C:\WINDOWS\SYSTEM32\RPCRT4.dll)
SspiCli.dll A: 0x74870000 - 0x7488E000 (C:\WINDOWS\SYSTEM32\SspiCli.dll)
CRYPTBASE.dll A: 0x74860000 - 0x7486A000 (C:\WINDOWS\SYSTEM32\CRYPTBASE.dll)
bcryptPrimitives.dll A: 0x75230000 - 0x75288000 (C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll)
sechost.dll A: 0x77910000 - 0x77954000 (C:\WINDOWS\SYSTEM32\sechost.dll)
advapi32.dll A: 0x77320000 - 0x7739B000 (C:\WINDOWS\SYSTEM32\advapi32.dll)
shlwapi.dll A: 0x774A0000 - 0x774E5000 (C:\WINDOWS\SYSTEM32\shlwapi.dll)
GDI32.dll A: 0x74A10000 - 0x74B5F000 (C:\WINDOWS\SYSTEM32\GDI32.dll)
USER32.dll A: 0x76FA0000 - 0x770E7000 (C:\WINDOWS\SYSTEM32\USER32.dll)
kernel.appcore.dll A: 0x77960000 - 0x7796C000 (C:\WINDOWS\SYSTEM32\kernel.appcore.dll)
shcore.dll A: 0x75290000 - 0x7531D000 (C:\WINDOWS\SYSTEM32\shcore.dll)
powrprof.dll A: 0x77B10000 - 0x77B54000 (C:\WINDOWS\SYSTEM32\powrprof.dll)
profapi.dll A: 0x767D0000 - 0x767DF000 (C:\WINDOWS\SYSTEM32\profapi.dll)
WINMM.dll A: 0x70960000 - 0x70984000 (C:\WINDOWS\SYSTEM32\WINMM.dll)
WSOCK32.dll A: 0x742D0000 - 0x742D8000 (C:\WINDOWS\SYSTEM32\WSOCK32.dll)
WS2_32.dll A: 0x77970000 - 0x779CF000 (C:\WINDOWS\SYSTEM32\WS2_32.dll)
WINMMBASE.dll A: 0x00AA0000 - 0x00AC3000 (C:\WINDOWS\SYSTEM32\WINMMBASE.dll)
IMM32.DLL A: 0x77660000 - 0x7768B000 (C:\WINDOWS\SYSTEM32\IMM32.DLL)
MSVCP100.dll A: 0x6C2B0000 - 0x6C319000 (C:\WINDOWS\SYSTEM32\MSVCP100.dll)
dbghelp.dll A: 0x70820000 - 0x7095F000 (C:\WINDOWS\SYSTEM32\dbghelp.dll)
MSVCR100.dll A: 0x6C320000 - 0x6C3DF000 (C:\WINDOWS\SYSTEM32\MSVCR100.dll)
mysql.DLL A: 0x10000000 - 0x10013000 (P:\SAMP\***\plugins\mysql.DLL)
LIBMYSQL.dll A: 0x0F830000 - 0x0FD3D000 (P:\SAMP\***\LIBMYSQL.dll)
MSVCR90.dll A: 0x6E5A0000 - 0x6E643000 (C:\WINDOWS\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9177_none_5093cc7abcb795e9\MSVCR90.dll)
MSVCP90.dll A: 0x704C0000 - 0x7054E000 (C:\WINDOWS\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9177_none_5093cc7abcb795e9\MSVCP90.dll)
Secur32.dll A: 0x72510000 - 0x7251A000 (C:\WINDOWS\SYSTEM32\Secur32.dll)
NLAapi.dll A: 0x724B0000 - 0x724C4000 (C:\WINDOWS\system32\NLAapi.dll)
napinsp.dll A: 0x72490000 - 0x724A2000 (C:\WINDOWS\system32\napinsp.dll)
pnrpnsp.dll A: 0x72470000 - 0x72486000 (C:\WINDOWS\system32\pnrpnsp.dll)
mswsock.dll A: 0x72C30000 - 0x72C7F000 (C:\WINDOWS\System32\mswsock.dll)
DNSAPI.dll A: 0x73E60000 - 0x73EE4000 (C:\WINDOWS\SYSTEM32\DNSAPI.dll)
NSI.dll A: 0x76F90000 - 0x76F97000 (C:\WINDOWS\SYSTEM32\NSI.dll)
winrnr.dll A: 0x72460000 - 0x7246B000 (C:\WINDOWS\System32\winrnr.dll)
mdnsNSP.dll A: 0x72430000 - 0x72451000 (C:\Program Files (x86)\Bonjour\mdnsNSP.dll)
Iphlpapi.DLL A: 0x73F90000 - 0x73FBF000 (C:\WINDOWS\SYSTEM32\Iphlpapi.DLL)
wshbth.dll A: 0x72410000 - 0x72421000 (C:\WINDOWS\System32\wshbth.dll)
rasadhlp.dll A: 0x718C0000 - 0x718C8000 (C:\Windows\System32\rasadhlp.dll)
streamer.DLL A: 0x50E00000 - 0x50E4A000 (P:\SAMP\***\plugins\streamer.DLL)
VCRUNTIME140.dll A: 0x50000000 - 0x50015000 (C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll)
MSVCP140.dll A: 0x77D10000 - 0x77D7D000 (C:\WINDOWS\SYSTEM32\MSVCP140.dll)
ucrtbase.dll A: 0x5F480000 - 0x5F561000 (C:\WINDOWS\SYSTEM32\ucrtbase.dll)
mapandreas.DLL A: 0x77CF0000 - 0x77D07000 (P:\SAMP\***\plugins\mapandreas.DLL)
RouteConnectorPlugin.DLL A: 0x02AE0000 - 0x03163000 (P:\SAMP\***\plugins\RouteConnectorPlugin.DLL)
MSVCR110.dll A: 0x6F040000 - 0x6F116000 (C:\WINDOWS\SYSTEM32\MSVCR110.dll)
MSVCP110.dll A: 0x6F120000 - 0x6F1A5000 (C:\WINDOWS\SYSTEM32\MSVCP110.dll)
bcrypt.dll A: 0x747C0000 - 0x747DB000 (C:\WINDOWS\SYSTEM32\bcrypt.dll)
Alles anzeigen
Screen der Datenbank-Tabelle:
https://i.gyazo.com/9d76233a5eb98b888bd7ce538e00d931.png
Ich danke schon mal für die Mühe!
Edit:
Ok, hat sich nun herausgestellt das auch die Accounts nicht mehr laden. Die oben genannte Funktion hat anscheinend allg. Probleme...
Edit 2:
Problem gelöst. Die libmysql.dll war fehlerhaft. Einfach neuladen.