30.12.2016, 12:04
I have been working on SC-RP script. Added few items in /buy menu. Every time I /buy in any store, the server gets crashed. And when I re launch it and check my inventory I find the item which I bought is there and the commands associated with that item is working fine. I get these in the server log. I think there is something wrong with the BusinessBuy dialog, but dont know for sure. A little help here will be appreciated.
Server Log:
Server Log:
Код:
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, ©2005-2015 SA-MP Team [18:14:45] filterscripts = "" (string) [18:14:45] [18:14:45] Server Plugins [18:14:45] -------------- [18:14:45] Loading plugin: crashdetect.dll [18:14:45] CrashDetect v4.12 is OK. [18:14:45] Loaded. [18:14:45] Loading plugin: sscanf.dll [18:14:45] [18:14:45] =============================== [18:14:45] sscanf plugin loaded. [18:14:45] Version: 2.8.1 [18:14:45] © 2012 Alex "******" Cole [18:14:45] =============================== [18:14:45] Loaded. [18:14:45] Loading plugin: streamer.dll [18:14:45] Loaded. [18:14:45] Loading plugin: Whirlpool.dll [18:14:45] [18:14:45] ================== [18:14:45] [18:14:45] Whirlpool loaded [18:14:45] [18:14:45] ================== [18:14:45] [18:14:45] Loaded. [18:14:45] Loading plugin: mysql.dll [18:14:45] >> plugin.mysql: R39-4 successfully loaded. [18:14:45] Loaded. [18:14:45] Loading plugin: nativechecker.dll [18:14:45] Loaded. [18:14:45] Loaded 6 plugins. [18:14:45] [18:14:45] Filterscripts [18:14:45] --------------- [18:14:45] Loaded 0 filterscripts. [18:14:45] [18:14:45] [18:14:45] [18:14:45] ======================================= [18:14:45] | | [18:14:45] | YSI version 3.09.0684 | [18:14:45] | By Alex "******" Cole | [18:14:45] | | [18:14:45] ======================================= [18:14:45] [18:14:45] [SQL] Connection to "localhost" passed! [18:14:45] Test Script [18:14:45] Number of vehicle models: 1 [18:14:45] New version of CrashDetect is available for download (4.13) [18:15:05] [connection] 127.0.0.1:52501 requests connection cookie. [18:15:06] [connection] incoming connection: 127.0.0.1:52501 id: 0 [18:15:06] [join] PlayerX has joined the server (0:127.0.0.1) [18:15:42] [debug] Server crashed while executing roleplay.amx [18:15:42] [debug] AMX backtrace: [18:15:42] [debug] #0 native fwrite () [004056e0] from samp-server.exe [18:15:42] [debug] #1 000d1e24 in ?? () from roleplay.amx [18:15:42] [debug] #2 0003b640 in ?? (0x00000000) from roleplay.amx [18:15:42] [debug] #3 0019728c in public dialog_BusinessBuy (0x00000000, 0x00000001, 0x00000001, 0x006dfb08) from roleplay.amx [18:15:42] [debug] #4 native CallLocalFunction () [004743b0] from samp-server.exe [18:15:42] [debug] #5 0000292c in public OnDialogResponse (0x00000000, 0x00007fbc, 0x00000001, 0x00000001, 0x006dfac8) from roleplay.amx [18:15:42] [debug] Native backtrace: [18:15:42] [debug] #0 77289f83 in ?? () from C:\Windows\SYSTEM32\ntdll.dll [18:15:42] [debug] #1 00498bb8 in ?? () from C:\Users\Desktop\Script\samp-server.exe [18:15:42] [debug] #2 0040531e in ?? () from C:\Users\Desktop\Script\samp-server.exe