17.06.2014, 06:12
Please add getting information about ammo after shot in OnPlayerWeaponShot.
[root@vps25148 sampsvr]# ./samp03svr & [1] 3127 [root@vps25148 sampsvr]# Started server on port: 7777, with maxplayers: 500 lanmode is OFF. *** glibc detected *** ./samp03svr: double free or corruption (!prev): 0x0c4e7068 *** ======= Backtrace: ========= /lib/libc.so.6(+0x70e31)[0xb7520e31] /lib/libc.so.6(+0x73588)[0xb7523588] /lib/libc.so.6(fclose+0x14a)[0xb75109aa] ./samp03svr[0x809abd4] ./samp03svr[0x8093f54] ./samp03svr[0x80959f5] plugins/mysql_static.so(amx_Exec+0x31)[0xb723dca1] plugins/mysql_static.so(_ZN9CCallback16ProcessCallbacksEv+0x510)[0xb721b860] plugins/mysql_static.so(ProcessTick+0x17)[0xb72433b7] ./samp03svr[0x80cf1f2] ./samp03svr[0x80ad2ac] ./samp03svr[0x80a85ce] /lib/libc.so.6(__libc_start_main+0xe6)[0xb74c6d26] ./samp03svr[0x804b4a1] ======= Memory map: ======== 08048000-08094000 r-xp 00000000 08:11 30280131 /root/sampsvr/samp03svr 08094000-08096000 rwxp 0004c000 08:11 30280131 /root/sampsvr/samp03svr 08096000-08171000 r-xp 0004e000 08:11 30280131 /root/sampsvr/samp03svr 08171000-08194000 rw-p 00128000 08:11 30280131 /root/sampsvr/samp03svr 08194000-0819e000 rw-p 00000000 00:00 0 0839a000-0ce3c000 rw-p 00000000 00:00 0 [heap] a9100000-a9182000 rw-p 00000000 00:00 0 a9182000-a9200000 ---p 00000000 00:00 0 a9300000-a9500000 rw-p 00000000 00:00 0 a9500000-a9700000 rw-p 00000000 00:00 0 a9700000-a9900000 rw-p 00000000 00:00 0 a9900000-a9b00000 rw-p 00000000 00:00 0 a9b00000-a9d00000 rw-p 00000000 00:00 0 a9d00000-a9f00000 rw-p 00000000 00:00 0 a9f00000-a9ff4000 rw-p 00000000 00:00 0 a9ff4000-aa000000 ---p 00000000 00:00 0 aa000000-aa100000 rw-p 00000000 00:00 0 aa100000-aa1f9000 rw-p 00000000 00:00 0 aa1f9000-aa200000 ---p 00000000 00:00 0 aa2a7000-aa2a8000 ---p 00000000 00:00 0 aa2a8000-aaca8000 rw-p 00000000 00:00 0 aaca8000-aacad000 r-xp 00000000 08:11 29888466 /lib/libnss_dns-2.12.so aacad000-aacae000 r--p 00004000 08:11 29888466 /lib/libnss_dns-2.12.so aacae000-aacaf000 rw-p 00005000 08:11 29888466 /lib/libnss_dns-2.12.so aacbe000-aacbf000 ---p 00000000 00:00 0 aacbf000-b477c000 rw-p 00000000 00:00 0 b47dd000-b5c1a000 rw-p 00000000 00:00 0 b5c1b000-b6370000 rw-p 00000000 00:00 0 b6370000-b63fc000 r-xp 00000000 08:11 30280125 /root/sampsvr/plugins/streamer.so b63fc000-b63fd000 rw-p 0008c000 08:11 30280125 /root/sampsvr/plugins/streamer.so b63fd000-b63fe000 rw-p 00000000 00:00 0 b6401000-b6600000 rw-p 00000000 00:00 0 b6600000-b6621000 rw-p 00000000 00:00 0 b6621000-b6700000 ---p 00000000 00:00 0 b6768000-b677d000 r-xp 00000000 08:11 29888027 /lib/libresolv-2.12.so b677d000-b677e000 ---p 00015000 08:11 29888027 /lib/libresolv-2.12.so b677e000-b677f000 r--p 00015000 08:11 29888027 /lib/libresolv-2.12.so b677f000-b6780000 rw-p 00016000 08:11 29888027 /lib/libresolv-2.12.so b6780000-b6782000 rw-p 00000000 00:00 0 b6788000-b678a000 r-xp 00000000 08:11 30280127 /root/sampsvr/plugins/nativechecker.so b678a000-b678b000 r--p 00001000 08:11 30280127 /root/sampsvr/plugins/nativechecker.so b678b000-b678c000 rw-p 00002000 08:11 30280127 /root/sampsvr/plugins/nativechecker.so b6790000-b679c000 r-xp 00000000 08:11 29888470 /lib/libnss_files-2.12.so b679c000-b679d000 r--p 0000b000 08:11 29888470 /lib/libnss_files-2.12.so b679d000-b679e000 rw-p 0000c000 08:11 29888470 /lib/libnss_files-2.12.so b679f000-b67a0000 ---p 00000000 00:00 0 b67a0000-b71a0000 rw-p 00000000 00:00 0 b71a0000-b71a7000 r-xp 00000000 08:11 29888471 /lib/librt-2.12.so b71a7000-b71a8000 r--p 00006000 08:11 29888471 /lib/librt-2.12.so b71a8000-b71a9000 rw-p 00007000 08:11 29888471 /lib/librt-2.12.so b71b0000-b71be000 r-xp 00000000 08:11 30280122 /root/sampsvr/plugins/sscanf.so b71be000-b71bf000 rw-p 0000d000 08:11 30280122 /root/sampsvr/plugins/sscanf.so b71c0000-b73d5000 r-xp 00000000 08:11 30280105 /root/sampsvr/plugins/mysql_static.so b73d5000-b740e000 rw-p 00215000 08:11 30280105 /root/sampsvr/plugins/mysql_static.so b740e000-b74ab000 rw-p 00000000 00:00 0 b74b0000-b7641000 r-xp 00000000 08:11 29887875 /lib/libc-2.12.so b7641000-b7643000 r--p 00191000 08:11 29887875 /lib/libc-2.12.so b7643000-b7644000 rw-p 00193000 08:11 29887875 /lib/libc-2.12.so b7644000-b7648000 rw-p 00000000 00:00 0 b7648000-b7665000 r-xp 00000000 08:11 29896734 /lib/libgcc_s-4.4.7-20120601.so.1 b7665000-b7666000 rw-p 0001d000 08:11 29896734 /lib/libgcc_s-4.4.7-20120601.so.1 b7668000-b7690000 r-xp 00000000 08:11 29888479 /lib/libm-2.12.so b7690000-b7691000 r--p 00027000 08:11 29888479 /lib/libm-2.12.so b7691000-b7692000 rw-p 00028000 08:11 29888479 /lib/libm-2.12.so b7697000-b7698000 rw-p 00000000 00:00 0 b7698000-b7777000 r-xp 00000000 08:11 29768479 /usr/lib/libstdc++.so.6.0.13 b7777000-b777b000 r--p 000de000 08:11 29768479 /usr/lib/libstdc++.so.6.0.13 b777b000-b777c000 rw-p 000e2000 08:11 29768479 /usr/lib/libstdc++.so.6.0.13 b777c000-b7783000 rw-p 00000000 00:00 0 b7788000-b779f000 r-xp 00000000 08:11 29887260 /lib/libpthread-2.12.so b779f000-b77a0000 r--p 00016000 08:11 29887260 /lib/libpthread-2.12.so b77a0000-b77a1000 rw-p 00017000 08:11 29887260 /lib/libpthread-2.12.so b77a1000-b77a4000 rw-p 00000000 00:00 0 b77a4000-b77a8000 rw-p 00000000 00:00 0 b77a8000-b77ab000 r-xp 00000000 08:11 29888220 /lib/libdl-2.12.so b77ab000-b77ac000 r--p 00002000 08:11 29888220 /lib/libdl-2.12.so b77ac000-b77ad000 rw-p 00003000 08:11 29888220 /lib/libdl-2.12.so b77ad000-b77b0000 rw-p 00000000 00:00 0 b77b0000-b77b9000 r-xp 00000000 08:11 30280129 /root/sampsvr/plugins/Whirlpool.so b77b9000-b77ba000 rw-p 00008000 08:11 30280129 /root/sampsvr/plugins/Whirlpool.so b77ba000-b77bf000 rw-p 00000000 00:00 0 b77bf000-b77c0000 r-xp 00000000 00:00 0 [vdso] b77c0000-b77de000 r-xp 00000000 08:11 29888037 /lib/ld-2.12.so b77de000-b77df000 r--p 0001d000 08:11 29888037 /lib/ld-2.12.so b77df000-b77e0000 rw-p 0001e000 08:11 29888037 /lib/ld-2.12.so bfdad000-bfdc2000 rw-p 00000000 00:00 0 [stack] [1]+ Aborted ./samp03svr