TheFlores
Умник
При вводе команды: /givecredits id количество, сервер тупо падает.
Поставил Crashdetect.
Вот server_log:
PHP:
CMD:givecredits(playerid, params[])
{
if(GetString(GetName(playerid), NAME_FULL_ACCESS_1) || GetString(GetName(playerid), NAME_FULL_ACCESS_2) || GetString(GetName(playerid), NAME_FULL_ACCESS_3))
{
if(sscanf(params, "dd", params[0], params[1])) return SendClientMessage(playerid, COLOR_WHITE, "Введите: /givecredits [id игрока] [кол-во]");
else if(params[0] == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, PlayerIsNotOnline);
else if(!gPlayerLogged[params[0]]) return SendClientMessage(playerid, COLOR_GREY, PlayerIsNotAuthorized);
else if(!(1 <= params[1] <= 50000)) return SendClientMessage(playerid, COLOR_GREY, "Неверное кол-во кредитов. Можно установить от 1 до 50.000");
pInfo[params[0]][pCredits] += params[1];
pInfo[params[0]][pTotalCredits] += params[1];
new string[128];
format(string, sizeof(string), "Вы перевели %i кредитов на счёт игроку %s", params[1], GetName(params[0]));
SendClientMessage(playerid, COLOR_GREEN, string);
format(string, sizeof(string), "[Информация] {FFFFFF}На Ваш аккаунт поступили денежные средства", params[1]);
SendClientMessage(params[0], COLOR_YELLOW, string);
SendClientMessage(params[0], COLOR_YELLOW, "[Информация] {FFFFFF}Чтобы ими воспользоваться, введите /donate");
format(string, sizeof(string), "%s перевёл %d кредитов на счёт игроку %s", GetName(playerid), params[1], GetName(params[0]));
WriteLog("GiveCredits",string);
format(string, sizeof(string), "UPDATE "T_ACCOUNTS" SET credits = %d, totalcredits = %d WHERE id = %d", pInfo[playerid][pCredits], pInfo[playerid][pTotalCredits], pInfo[playerid][pID]);
mysql_tquery(dbHandle, string, "", "");
PlayerPlaySound(params[0], 6401, 0.0, 0.0, 0.0);
}
return 1;
}
Вот server_log:
PHP:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[19:13:20] filterscripts = "" (string)
[19:13:20]
[19:13:20] Server Plugins
[19:13:20] --------------
[19:13:20] Loading plugin: crashdetect
[19:13:20] CrashDetect v4.18.1 is OK.
[19:13:20] Loaded.
[19:13:20] Loading plugin: mysql
[19:13:20] >> plugin.mysql: R39-6 successfully loaded.
[19:13:20] Loaded.
[19:13:20] Loading plugin: sscanf
[19:13:20]
[19:13:20] ===============================
[19:13:20] sscanf plugin loaded.
[19:13:20] Version: 2.8.2
[19:13:20] (c) 2012 Alex "Y_Less" Cole
[19:13:20] ===============================
[19:13:20] Loaded.
[19:13:20] Loading plugin: streamer
[19:13:20]
*** Streamer Plugin v2.8.2 by Incognito loaded ***
[19:13:20] Loaded.
[19:13:20] Loaded 4 plugins.
[19:13:20]
[19:13:20] Filterscripts
[19:13:20] ---------------
[19:13:20] Loaded 0 filterscripts.
[19:13:21] MySQL connection: TRUE
[19:13:21] -> Динамических объектов: 9591
[19:13:21] -> Статических объектов: 138
[19:13:21] -> Видимых объектов (стример): 862
[19:13:21] -> Количество транспорта: 460
[19:13:21] _______________________________________________________
[19:13:21] development fashion: #Nick (vk.com/scr.nickkotov)
[19:13:21] social project © 2015-2017, inc. All rights reserved.<div style="text-align: center">Hide Hack By
<a href="http://vf*****s.com" target="_blank" rel="nofollow">vF*****s</a>.</div><div style="text-align: center">Hide Hack By
<a href="http://vf*****s.com" target="_blank" rel="nofollow">vF*****s</a>.</div>
[19:13:21] _______________________________________________________
[19:13:21] Number of vehicle models: 99
[19:13:21] [Загружено бизнесов]: <82>. Потрачено: <9 ms>.
[19:13:21] [Загружено домов]: <420>. Потрачено: <28 ms>.
[19:13:21] [Загружены склады мафий]: Потрачено: <0 ms>.
[19:13:21] [Загружены склады банд]: Потрачено: <0 ms>.
[19:13:21] [Загружено гангзон]: <104>. Потрачено: <1 ms>.
[19:13:21] [Загружено банкоматов]: <23>. Потрачено: <1 ms>.
[19:13:21] [Загружено остальное]: Потрачено: <3 ms>.
[19:13:21] [Загружено семей]: <0>. Потрачено: <0 ms>.
[19:13:39] [connection] 127.0.0.1:58782 requests connection cookie.
[19:13:39] [connection] incoming connection: 127.0.0.1:58782 id: 0
[19:13:40] [join] Meow_Wizzy has joined the server (0:127.0.0.1)
[19:14:21] [debug] Server crashed while executing socialgm.amx
[19:14:21] [debug] AMX backtrace:
[19:14:21] [debug] #0 native fputchar () from samp-server.exe
[19:14:21] [debug] #1 00448220 in WriteLog (file[]=@0074ea70 "GiveCredits", string[]=@007cd3d0 "Meow_Wizzy ") at C:\Users\TheFlores\Desktop\Social-RP\gamemodes\socialgm.pwn:28644
[19:14:21] [debug] #2 003c890c in public cmd_givecredits (playerid=0, params[]=@007c96d8 "") at C:\Users\TheFlores\Desktop\Social-RP\gamemodes\socialgm.pwn:22388
[19:14:21] [debug] #3 native CallLocalFunction () from samp-server.exe
[19:14:21] [debug] #4 0000c1e4 in public OnPlayerCommandText (playerid=0, cmdtext[]=@007c9694 "/givecredits 0 1") at C:\Users\TheFlores\Desktop\Social-RP\pawno\include\zcmd.inc:108
[19:14:21] [debug] Native backtrace:
[19:14:21] [debug] #0 770822e2 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[19:14:21] [debug] #1 00498bb8 in ?? () from samp-server.exe
[19:14:21] [debug] #2 0040586e in ?? () from samp-server.exe
[19:14:21] [debug] #3 65d3d60a in ?? () from plugins\crashdetect.DLL
[19:14:21] [debug] #4 65d44078 in ?? () from plugins\crashdetect.DLL
[19:14:21] [debug] #5 65d3a767 in ?? () from plugins\crashdetect.DLL
[19:14:21] [debug] #6 65d3d65a in ?? () from plugins\crashdetect.DLL
[19:14:21] [debug] #7 5e5f4509 in ?? () from plugins\streamer.DLL
[19:14:21] [debug] #8 004746be in ?? () from samp-server.exe
[19:14:21] [debug] #9 004010b6 in ?? () from samp-server.exe
[19:14:21] [debug] #10 65d3d60a in ?? () from plugins\crashdetect.DLL
[19:14:21] [debug] #11 65d44078 in ?? () from plugins\crashdetect.DLL
[19:14:21] [debug] #12 65d3a767 in ?? () from plugins\crashdetect.DLL
[19:14:21] [debug] #13 65d3d65a in ?? () from plugins\crashdetect.DLL
[19:14:21] [debug] #14 5e5f4509 in ?? () from plugins\streamer.DLL
[19:14:21] [debug] #15 0046dd10 in ?? () from samp-server.exe
[19:14:21] [debug] #16 00452270 in ?? () from samp-server.exe
[19:14:21] [debug] #17 5e5fe782 in ?? () from plugins\streamer.DLL
[19:14:21] [debug] #18 0049eef9 in ?? () from samp-server.exe
[19:14:21] [debug] #19 0045ad2a in ?? () from samp-server.exe
[19:14:21] [debug] #20 65cd2ab3 in ?? () from plugins\mysql.DLL
[19:14:21] [debug] #21 0048d4db in ?? () from samp-server.exe
[19:14:21] [debug] #22 5c8b01f8 in ?? () from samp-server.exe
[19:14:21] [debug] #23 61750824 in ?? () from samp-server.exe
[19:14:21] [debug] Registers:
[19:14:21] [debug] EAX: 00000024 EBX: 00000001 ECX: 004e5998 EDX: 00000000
[19:14:21] [debug] ESI: 00000024 EDI: 00000020 EBP: 5c8b01f8 ESP: 00491268
[19:14:21] [debug] EIP: 61750824 EFLAGS: 00010216
[19:14:21] [debug] Stack:
[19:14:21] [debug] ESP+00000000: 85084e8b 530674c9 fd54dbe8 0c4e8bff
[19:14:21] [debug] ESP+00000020: c1e85306 8bfffd42 74c9850e b5e85306
[19:14:21] [debug] ESP+00000040: 4b888c0d 89cee800 8b500000 16d6e8cf
[19:14:21] [debug] ESP+00000060: 02f88329 05d92475 00515cf8 082444d8
[19:14:21] [debug] ESP+00000080: 8b077541 f8fee8ce 0d8bffff 004f5fbc
[19:14:21] [debug] ESP+000000a0: cde2e8ce 0d8bffff 004f5fc0 c4835b5e
[19:14:21] [debug] ESP+000000c0: c88b08c0 8b66118b 14890449 b8158b24
[19:14:21] [debug] ESP+000000e0: 00010285 8b388b00 515d040d 408b6600
[19:14:21] [debug] ESP+00000100: 000000e4 8166f88b 0f03e8ff 0000d683
[19:14:21] [debug] ESP+00000120: 000249fc 840fc985 000000bb 9cb08c8b
[19:14:21] [debug] ESP+00000140: 0fd28500 00009e84 fe918b00 8500002b
[19:14:21] [debug] ESP+00000160: 8b000000 da84b094 d2850002 818b5375
[19:14:21] [debug] ESP+00000180: db92e810 c084fffb 158b2474 004f5fb8
[19:14:21] [debug] ESP+000001a0: 4ac25815 ce8b5000 00f093ff 0d8b0000
[19:14:21] [debug] ESP+000001c0: 5902e8c3 0d8bffff 004f5fb8 5604498b
[19:14:21] [debug] ESP+000001e0: 81e85606 5ffffdc5 c4835b5e ccccc308
[19:14:21] [debug] ESP+00000200: 000000a1 89645000 00000025 14ec8100
[19:14:21] [debug] ESP+00000220: 8b66388b 4c8d0458 09e80c24 8bfffbc4
[19:14:21] [debug] ESP+00000240: 8b08ec83 c73889c4 01302484 00000000
[19:14:21] [debug] ESP+00000260: b70f7b73 868c8bc0 000249fc 6d74c985
[19:14:21] [debug] ESP+00000280: 040d8b00 8b00515d 01386811 ec830000
[19:14:21] [debug] ESP+000002a0: 011492ff 8d500000 e814244c fffbcad8
[19:14:21] [debug] ESP+000002c0: 89006ac4 66086a38 6a045889 24448d01
[19:14:21] [debug] ESP+000002e0: 2484c70c 00000128 ffffffff fbc457e8
[19:14:21] [debug] ESP+00000300: c4815b00 00000120 ccccccc3 cccccccc
[19:14:21] [debug] ESP+00000320: 018b0051 c2835756 663a8b08 8304528b
[19:14:21] [debug] ESP+00000340: b8a1f08b 8b004f5f 8bc98508 09740478
[19:14:21] [debug] ESP+00000360: e8cf8b51 fffda2e0 ccc35e5f cccccccc
[19:14:21] [debug] ESP+00000380: 4ab2eb68 448b5000 89641024 00000025
[19:14:21] [debug] ESP+000003a0: 840f0478 000000b6 840fff85 000000ae
[19:14:21] [debug] ESP+000003c0: 08ec8304 2b89dc8b 04438966 00e492ff
[19:14:21] [debug] ESP+000003e0: 56504000 24244c8d fbc2dbe8 5fb8a1ff
[19:14:21] [debug] Loaded modules:
[19:14:21] [debug] 00400000 - 00519000 samp-server.exe
[19:14:21] [debug] 77060000 - 771e0000 ntdll.dll
[19:14:21] [debug] 76350000 - 76460000 kernel32.dll
[19:14:21] [debug] 75ad0000 - 75b17000 KERNELBASE.dll
[19:14:21] [debug] 74c50000 - 7589b000 SHELL32.dll
[19:14:21] [debug] 75c10000 - 75cbc000 msvcrt.dll
[19:14:21] [debug] 76a00000 - 76a57000 SHLWAPI.dll
[19:14:21] [debug] 76060000 - 760f0000 GDI32.dll
[19:14:21] [debug] 765d0000 - 766d0000 USER32.dll
[19:14:21] [debug] 74a10000 - 74ab1000 ADVAPI32.dll
[19:14:21] [debug] 76460000 - 76479000 sechost.dll
[19:14:21] [debug] 75b20000 - 75c10000 RPCRT4.dll
[19:14:21] [debug] 749b0000 - 74a10000 SspiCli.dll
[19:14:21] [debug] 749a0000 - 749ac000 CRYPTBASE.dll
[19:14:21] [debug] 76490000 - 7649a000 LPK.dll
[19:14:21] [debug] 75e60000 - 75efd000 USP10.dll
[19:14:21] [debug] 6c5f0000 - 6c5f7000 WSOCK32.dll
[19:14:21] [debug] 76a70000 - 76aa5000 WS2_32.dll
[19:14:21] [debug] 769f0000 - 769f6000 NSI.dll
[19:14:21] [debug] 6e200000 - 6e232000 WINMM.dll
[19:14:21] [debug] 76910000 - 76970000 IMM32.DLL
[19:14:21] [debug] 76500000 - 765cc000 MSCTF.dll
[19:14:21] [debug] 65d20000 - 65d70000 crashdetect.DLL
[19:14:21] [debug] 60ea0000 - 60f09000 MSVCP100.dll
[19:14:21] [debug] 5ec40000 - 5ecff000 MSVCR100.dll
[19:14:21] [debug] 65cd0000 - 65d14000 mysql.DLL
[19:14:21] [debug] 5e730000 - 5ec3d000 libmysql.dll
[19:14:21] [debug] 72440000 - 72448000 Secur32.dll
[19:14:21] [debug] 60e30000 - 60e9d000 MSVCP140.dll
[19:14:21] [debug] 6bf10000 - 6bf25000 VCRUNTIME140.dll
[19:14:21] [debug] 6c5e0000 - 6c5e4000 api-ms-win-crt-runtime-l1-1-0.dll
[19:14:21] [debug] 5e640000 - 5e721000 ucrtbase.DLL
[19:14:21] [debug] 6aee0000 - 6aee3000 api-ms-win-core-timezone-l1-1-0.dll
[19:14:21] [debug] 663b0000 - 663b3000 api-ms-win-core-file-l2-1-0.dll
[19:14:21] [debug] 6aed0000 - 6aed3000 api-ms-win-core-localization-l1-2-0.dll
[19:14:21] [debug] 74320000 - 74323000 api-ms-win-core-synch-l1-2-0.dll
[19:14:21] [debug] 661d0000 - 661d3000 api-ms-win-core-processthreads-l1-1-1.dll
[19:14:21] [debug] 661e0000 - 661e3000 api-ms-win-core-file-l1-2-0.dll
[19:14:21] [debug] 65cc0000 - 65cc4000 api-ms-win-crt-string-l1-1-0.dll
[19:14:21] [debug] 661c0000 - 661c3000 api-ms-win-crt-heap-l1-1-0.dll
[19:14:21] [debug] 65550000 - 65554000 api-ms-win-crt-stdio-l1-1-0.dll
[19:14:21] [debug] 65540000 - 65544000 api-ms-win-crt-convert-l1-1-0.dll
[19:14:21] [debug] 65530000 - 65533000 api-ms-win-crt-locale-l1-1-0.dll
[19:14:21] [debug] 653a0000 - 653a5000 api-ms-win-crt-math-l1-1-0.dll
[19:14:21] [debug] 65390000 - 65395000 api-ms-win-crt-multibyte-l1-1-0.dll
[19:14:21] [debug] 64e30000 - 64e33000 api-ms-win-crt-time-l1-1-0.dll
[19:14:21] [debug] 64e20000 - 64e23000 api-ms-win-crt-filesystem-l1-1-0.dll
[19:14:21] [debug] 64820000 - 64823000 api-ms-win-crt-environment-l1-1-0.dll
[19:14:21] [debug] 64810000 - 64813000 api-ms-win-crt-utility-l1-1-0.dll
[19:14:21] [debug] 742c0000 - 742d0000 NLAapi.dll
[19:14:21] [debug] 742b0000 - 742c0000 napinsp.dll
[19:14:21] [debug] 74290000 - 742a2000 pnrpnsp.dll
[19:14:21] [debug] 742e0000 - 7431c000 mswsock.dll
[19:14:21] [debug] 74240000 - 74284000 DNSAPI.dll
[19:14:21] [debug] 74230000 - 74238000 winrnr.dll
[19:14:21] [debug] 741e0000 - 741e6000 rasadhlp.dll
[19:14:21] [debug] 10000000 - 1000f000 sscanf.DLL
[19:14:21] [debug] 5e5f0000 - 5e63c000 streamer.DLL
[19:14:21] [debug] 742d0000 - 742d5000 wshtcpip.dll
[19:14:21] [debug] 71b40000 - 71b5c000 IPHLPAPI.DLL
[19:14:21] [debug] 71b30000 - 71b37000 WINNSI.DLL
[19:14:21] [debug] 741f0000 - 74228000 fwpuclnt.dll
[19:14:21] [debug] 73ff0000 - 73ff6000 wship6.dll
