Hey,
Wen ich ein Biz kaufe Crasht der Server?
Befehl zum kaufen:
Code
ocmd:buybiz(playerid)
{
new string[128];
for(new i=0;i<MAX_BIZ;i++)
{
if(Biz[i][bCreated] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, Biz[i][bEnterX], Biz[i][bEnterY], Biz[i][bEnterZ]))
{
if(PlayerInfo[playerid][pPersonalausweis] == 0)return SendClientMessage(playerid, COLOR_GREY, "Du besitzt keinen Personalausweis.");
if(strcmp(Biz[i][bBesitzer], GetName(playerid), false) == 0)return SendClientMessage(playerid, COLOR_GREY, "Dieses Geschäft gehört bereits dir.");
if(strcmp(Biz[i][bBesitzer], "-", false))return SendClientMessage(playerid, COLOR_GREY, "Dieses Geschäft ist bereits verkauft.");
new count = CountPlayerBizes(playerid);
if(count > 0)return SendClientMessage(playerid, COLOR_GREY, "Du besitzt bereits ein Geschäft.");
if((GetPlayerMoneys(playerid) - Biz[i][bPreis]) < 0)return SendClientMessage(playerid, COLOR_GREY, ERROR_MONEY);
format(string, sizeof(string), "Herzlichen Glückwunsch zu deinem neuen Geschäft. (-$%d)", Biz[i][bPreis]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoneys(playerid, -Biz[i][bPreis]);
DestroyPickup(Biz[i][bPickup]);
Biz[i][bPickup] = CreatePickup(BIZ_OWNER_PICKUP, 1, Biz[i][bEnterX], Biz[i][bEnterY], Biz[i][bEnterZ], -1);
strmid(Biz[i][bBesitzer], GetName(playerid), 0, strlen(GetName(playerid)), 24);
Biz[i][bOwned] = 1;
UpdateBizLabel(i, Biz[i][bOwned]);
SaveBiz(i);
PlayerUpdate(playerid);
return 1;
}
}
}
return 1;
}
Alles anzeigen
Crash (Log)
Code
[23:02:00] [debug] Server crashed due to an unknown error
[23:02:01] [debug] Native backtrace:
[23:02:01] [debug] #0 004016eb in ?? () from samp-server.exe
[23:02:01] [debug] #1 702735e9 in ?? () from plugins\mysql.DLL
[23:02:01] [debug] #2 70276688 in ?? () from plugins\mysql.DLL
[23:02:01] [debug] #3 7025c52e in ?? () from plugins\mysql.DLL
[23:02:01] [debug] #4 7025dc7f in ?? () from plugins\mysql.DLL
[23:02:01] [debug] #5 7025e3d3 in ?? () from plugins\mysql.DLL
[23:02:01] [debug] #6 00469a66 in ?? () from samp-server.exe
[23:02:01] [debug] #7 0048d4db in ?? () from samp-server.exe
[23:02:01] [debug] #8 0049b4a1 in ?? () from samp-server.exe
[23:02:01] [debug] #9 0049b4b1 in ?? () from samp-server.exe
[23:02:01] [debug] Registers:
[23:02:01] [debug] EAX: 05e11658 EBX: 00000000 ECX: 05e25020 EDX: 00000008
[23:02:01] [debug] ESI: 00000038 EDI: ffffd8c0 EBP: 0049b4a1 ESP: 0019fe98
[23:02:01] [debug] EIP: 0049b4b1 EFLAGS: 00010246
[23:02:01] [debug] Stack:
[23:02:01] [debug] ESP+00000000: 004ab4a0 0019ff70 004ab0e1 ffffffff
[23:02:01] [debug] ESP+00000020: 00000094 00000006 00000002 000023f0
[23:02:01] [debug] ESP+00000040: 00000000 00000000 00000000 00000000
[23:02:01] [debug] ESP+00000060: 00000000 00000000 00000000 00000000
[23:02:01] [debug] ESP+00000080: 00000000 00000000 00000000 00000000
[23:02:01] [debug] ESP+000000a0: 00000000 00000000 00000000 00000000
[23:02:01] [debug] ESP+000000c0: 00000000 00000000 c0000005 00000000
[23:02:01] [debug] ESP+000000e0: 004ba530 00000000 0019ff94 77748654
[23:02:01] [debug] ESP+00000100: 77c44b47 00389000 1b9b9a9a 00000000
[23:02:01] [debug] ESP+00000120: 00000000 00000000 1b9b9a9a 0019ffa0
[23:02:01] [debug] ESP+00000140: 00000000 0019ffec 77c44b17 ffffffff
[23:02:01] [debug] ESP+00000160: 00389000 00000000 78746341 00000020
[23:02:01] [debug] ESP+00000180: 00000020 00000000 00000014 00000001
[23:02:01] [debug] ESP+000001a0: 00000000 00000000 00000000 00000000
[23:02:01] [debug] ESP+000001c0: 00000044 000002e0 0000025c 00000000
[23:02:01] [debug] ESP+000001e0: 00000342 00000000 2d59495b 000008cc
[23:02:01] [debug] ESP+00000200: 32ceeacd 00000bfc 00000042 00000c40
[23:02:01] [debug] ESP+00000220: 0000005e 00000fd0 00000362 00000000
[23:02:01] [debug] ESP+00000240: 00000392 00000010 00000009 000000ec
[23:02:01] [debug] ESP+00000260: 00000001 00000002 00001758 000007a0
[23:02:01] [debug] ESP+00000280: 00000001 00000004 00002d84 00000314
[23:02:01] [debug] ESP+000002a0: 00000002 00000006 00003130 000000cc
[23:02:01] [debug] ESP+000002c0: 00000001 00000009 000032ec 00000028
[23:02:01] [debug] ESP+000002e0: 00000001 64487353 0000002c 00000001
[23:02:01] [debug] ESP+00000300: 00000001 000015a4 0000002c 0000005e
[23:02:01] [debug] ESP+00000320: 00000000 00000000 00000000 00000000
[23:02:01] [debug] ESP+00000340: 00000038 00000000 003a0043 0057005c
[23:02:01] [debug] ESP+00000360: 006e0069 00780053 005c0073 00000000
[23:02:01] [debug] ESP+00000380: 0000025c 00000001 f33271ba 000003c0
[23:02:01] [debug] ESP+000003a0: 2d59495b 00000750 00000032 00000784
[23:02:01] [debug] ESP+000003c0: 00000042 00000ac4 00000330 00000004
[23:02:01] [debug] ESP+000003e0: 00000362 00000005 b1280544 000011b8
[23:02:01] [debug] Loaded modules:
[23:02:01] [debug] 00400000 - 00519000 samp-server.exe
[23:02:01] [debug] 77be0000 - 77d6d000 ntdll.dll
[23:02:01] [debug] 77730000 - 77800000 KERNEL32.DLL
[23:02:01] [debug] 77250000 - 77427000 KERNELBASE.dll
[23:02:01] [debug] 757f0000 - 76b24000 SHELL32.dll
[23:02:01] [debug] 77030000 - 770ed000 msvcrt.dll
[23:02:01] [debug] 77a60000 - 77a98000 cfgmgr32.dll
[23:02:01] [debug] 74620000 - 74737000 ucrtbase.dll
[23:02:01] [debug] 747c0000 - 74848000 shcore.dll
[23:02:01] [debug] 77b20000 - 77bde000 RPCRT4.dll
[23:02:01] [debug] 74600000 - 74620000 SspiCli.dll
[23:02:01] [debug] 745f0000 - 745fa000 CRYPTBASE.dll
[23:02:01] [debug] 77550000 - 775a7000 bcryptPrimitives.dll
[23:02:01] [debug] 76cd0000 - 76d13000 sechost.dll
[23:02:01] [debug] 749a0000 - 74be6000 combase.dll
[23:02:01] [debug] 75130000 - 756f6000 windows.storage.dll
[23:02:01] [debug] 74740000 - 747b8000 advapi32.dll
[23:02:01] [debug] 750b0000 - 750f5000 shlwapi.dll
[23:02:01] [debug] 75700000 - 75722000 GDI32.dll
[23:02:01] [debug] 77860000 - 779bf000 gdi32full.dll
[23:02:01] [debug] 77aa0000 - 77b1c000 msvcp_win.dll
[23:02:01] [debug] 76e90000 - 77005000 USER32.dll
[23:02:01] [debug] 74850000 - 74866000 win32u.dll
[23:02:01] [debug] 757e0000 - 757ee000 kernel.appcore.dll
[23:02:01] [debug] 74870000 - 748b5000 powrprof.dll
[23:02:01] [debug] 76d20000 - 76d34000 profapi.dll
[23:02:01] [debug] 73f60000 - 73f84000 WINMM.dll
[23:02:01] [debug] 6d480000 - 6d488000 WSOCK32.dll
[23:02:01] [debug] 774e0000 - 77546000 WS2_32.dll
[23:02:01] [debug] 739b0000 - 739d3000 WINMMBASE.dll
[23:02:01] [debug] 75100000 - 75125000 IMM32.DLL
[23:02:01] [debug] 702a0000 - 702f1000 crashdetect.DLL
[23:02:01] [debug] 6ed80000 - 6ee3f000 MSVCR100.dll
[23:02:01] [debug] 6dfa0000 - 6e009000 MSVCP100.dll
[23:02:01] [debug] 70250000 - 7029e000 mysql.DLL
[23:02:01] [debug] 6db50000 - 6db65000 VCRUNTIME140.dll
[23:02:01] [debug] 6d190000 - 6d203000 MSVCP140.dll
[23:02:01] [debug] 70e00000 - 70e1a000 log-core.dll
[23:02:01] [debug] 6ded0000 - 6df9d000 libmariadb.dll
[23:02:01] [debug] 76b40000 - 76cc2000 CRYPT32.dll
[23:02:01] [debug] 76b30000 - 76b3e000 MSASN1.dll
[23:02:01] [debug] 6db20000 - 6db2a000 Secur32.dll
[23:02:01] [debug] 73020000 - 73031000 napinsp.dll
[23:02:01] [debug] 73000000 - 73016000 pnrpnsp.dll
[23:02:01] [debug] 721d0000 - 721e3000 NLAapi.dll
[23:02:01] [debug] 73820000 - 73875000 mswsock.dll
[23:02:01] [debug] 736e0000 - 73774000 DNSAPI.dll
[23:02:01] [debug] 775b0000 - 775b7000 NSI.dll
[23:02:01] [debug] 74360000 - 74390000 IPHLPAPI.DLL
[23:02:01] [debug] 721a0000 - 721ac000 winrnr.dll
[23:02:01] [debug] 72190000 - 721a0000 wshbth.dll
[23:02:01] [debug] 736d0000 - 736d8000 rasadhlp.dll
[23:02:01] [debug] 10000000 - 1000f000 sscanf.DLL
[23:02:01] [debug] 6de60000 - 6dec7000 streamer.DLL
[23:02:01] [debug] 04a00000 - 04a0c000 Whirlpool.DLL
[23:02:01] [debug] 6d7c0000 - 6d85b000 MSVCR80.dll
[23:02:01] [debug] 6ed70000 - 6ed7b000 FileManager.DLL
[23:02:01] [debug] 64f80000 - 65005000 MSVCP110.dll
[23:02:01] [debug] 6d6e0000 - 6d7b7000 MSVCR110.dll
[23:02:01] [debug] 73620000 - 7366e000 fwpuclnt.dll
[23:02:01] [debug] 743e0000 - 743f9000 bcrypt.dll
[23:02:01] [debug] 74210000 - 74289000 uxtheme.dll
[23:02:01] [debug] 77150000 - 77247000 ole32.dll
[23:02:01] [debug] 732d0000 - 7344b000 PROPSYS.dll
[23:02:01] [debug] 779c0000 - 77a53000 OLEAUT32.dll
[23:02:01] [debug] 75020000 - 750a2000 clbcatq.dll
[23:02:01] [debug] 706b0000 - 70987000 OneCoreUAPCommonProxyStub.dll
[23:02:01] [debug] 72430000 - 72446000 CLDAPI.dll
[23:02:01] [debug] 71360000 - 71368000 FLTLIB.DLL
[23:02:01] [debug] 71320000 - 71356000 AEPIC.dll
[23:02:01] [debug] 744f0000 - 74518000 ntmarta.dll
[23:02:01] [debug] 744d0000 - 744e3000 cryptsp.dll
[23:02:01] [debug] 713c0000 - 713fd000 edputil.dll
[23:02:01] [debug] 71040000 - 710c4000 Windows.StateRepositoryPS.dll
[23:02:01] [debug] 65d20000 - 65eac000 urlmon.dll
[23:02:01] [debug] 77010000 - 77029000 imagehlp.dll
[23:02:01] [debug] 65b00000 - 65d1a000 iertutil.dll
[23:02:01] [debug] 65aa0000 - 65afe000 msiso.dll
Alles anzeigen