SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/06/2020, 05:58 AM   #1
Ertouq
Huge Clucker
 
Ertouq's Avatar
 
Join Date: Jul 2014
Posts: 236
Reputation: 4
Default big backtrace

Hello! It's me again with another backtrace.

This happened when X user disconnected. This showed in the next 4 seconds

PHP Code:
[00:39:36] [debugServer crashed game executing game.amx
[00:39:36] [debugAMX backtrace:
[
00:39:36] [debug#0 native SendClientMessage () in server
[00:39:36] [debug#1 0004c2f4 in public Unban (playerid=0, 7373936) at C:\Users\ert\OneDrive\Desktop\game\gamemodes\game.pwn:1739
[00:39:36] [debugNative backtrace:
[
00:39:36] [debug#0 f73888b6 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () in plugins/crashdetect.so
[00:39:36] [debug#1 f7380120 in _ZN18CrashDetectHandler20PrintNativeBacktraceERSoRKN2os7ContextE () in plugins/crashdetect.so
[00:39:36] [debug#2 f7380886 in _ZN18CrashDetectHandler20PrintNativeBacktraceERKN2os7ContextE () in plugins/crashdetect.so
[00:39:36] [debug#3 f7380f96 in _ZN18CrashDetectHandler7OnCrashERKN2os7ContextE () in plugins/crashdetect.so
[00:39:36] [debug#4 f7387f82 in ?? () in plugins/crashdetect.so
[00:39:36] [debug#5 f76eed40 in __kernel_rt_sigreturn () in linux-gate.so.1
[00:39:36] [debug#6 f73f5508 in _IO_vfprintf () in /lib32/libc.so.6
[00:39:36] [debug#7 f74157a2 in vsprintf () in /lib32/libc.so.6
[00:39:36] [debug#8 080ad731 in ?? () in ./server
[00:39:36] [debug#9 080d99e9 in ?? () in ./server
[00:39:36] [debug#10 080950e4 in ?? () in ./server
[00:39:36] [debug#11 f7381b9b in _ZN18CrashDetectHandler15ProcessCallbackEiPiS0_ () in plugins/crashdetect.so
[00:39:36] [debug#12 f7385fc2 in ?? () in plugins/crashdetect.so
[00:39:36] [debug#13 f7355a04 in _ZN7amxprof8Profiler12CallbackHookEiPiS1_PFiP6tagAMXiS1_S1_E () in plugins/profiler.so
[00:39:36] [debug#14 f734f214 in _ZN15ProfilerHandler8CallbackEiPiS0_ () in plugins/profiler.so
[00:39:36] [debug#15 f734e012 in ?? () in plugins/profiler.so
[00:39:36] [debug#16 f738abc7 in amx_Exec () in plugins/crashdetect.so
[00:39:36] [debugRegisters:
[
00:39:36] [debugEAX00000000 EBXf7559000 ECXffffffff EDX62736544
[00:39:36] [debugESIffead140 EDI62736544 EBPffead118 ESPffeacc00
[00:39:36] [debugEIPf73f5508 EFLAGS00010246
[00:39:36] [debugStack:
[
00:39:36] [debugESP+00000000ffead140 ffead770 0000000e 00000000
[00:39:36] [debugESP+00000020ffeacee0 ffeacc88 0000002a ffeacc50
[00:39:36] [debugESP+00000040f766fe87 000000a3 00000000 ffeacef8
[00:39:36] [debugESP+0000006000000000 00000000 00000000 00000000
[00:39:36] [debugESP+0000008000000000 ffffffff 00000000 00000000
[00:39:36] [debugESP+000000a000207720 20322068 ffead774 6574656d
[00:39:36] [debugESP+000000c0ffead77e 00000000 f733b000 0000000e
[00:39:36] [debugESP+000000e00000000a 00000000 ffead150 00000001
[00:39:36] [debugESP+0000010000000005 0000270f 00000037 00000008
[00:39:36] [debugESP+0000012000000000 0000005b 00000000 0000006e
[00:39:36] [debugESP+0000014000000000 00000077 00000000 f7423b1c
[00:39:36] [debugESP+00000160f7559420 09256504 ffeacea8 f7425bd1
[00:39:36] [debugESP+0000018000000037 0000270f 00000020 00000005
[00:39:36] [debugESP+000001a000000037 0000005b 00000000 0000006e
[00:39:36] [debugESP+000001c00990383c 0992f11c 0000002a f7559000
[00:39:36] [debugESP+000001e000000000 ffeacdf8 f7671e49 f7422ea5
[00:39:36] [debugESP+0000020009221734 0992f146 f76630b9 f7423b1c
[00:39:36] [debugESP+0000022009221734 0992f11c ffeace4e f7423b1c
[00:39:36] [debugESP+0000024009256504 f7326b14 00000009 f72f11c4
[00:39:36] [debugESP+00000260ffead101 ffeacef0 00000020 f7422ea5
[00:39:36] [debugESP+0000028000000000 0000005b 00000000 f7559000
[00:39:36] [debugESP+000002a009577988 00000002 00000002 f72f1ce6
[00:39:36] [debugESP+000002c000000002 00000007 ffead098 f72efde9
[00:39:36] [debugESP+000002e000007830 ffead440 0000000c f7423b1c
[00:39:36] [debugESP+00000300ffead090 ffeacf90 ffeacfc8 f72f34c1
[00:39:36] [debugESP+0000032000000000 00002710 00000060 f72f0f50
[00:39:36] [debugESP+0000034000000000 0000005b ffead118 f72efde9
[00:39:36] [debugESP+0000036009256524 00000002 00000002 f7423b1c
[00:39:36] [debugESP+00000380ffead110 ffead010 ffead048 f72f3450
[00:39:36] [debugESP+000003a000000000 f72ef378 0000002d f7423b1c
[00:39:36] [debugESP+000003c000000000 ffead050 0000000a f72f0f50
[00:39:36] [debugESP+000003e0ffead170 ffead070 00000020 f7423b1c
[00:39:36] [debugLoaded modules:
[
00:39:36] [debug00000000 00187dc3 server
[00:39:36] [debugf76ee000 f76eee82 linux-gate.so.1
[00:39:36] [debugf76cf000 f76d181b /lib32/libdl.so.2
[00:39:36] [debugf76b3000 f76cdd2b /lib32/libpthread.so.0
[00:39:36] [debugf75c1000 f76bad1a /usr/lib32/libstdc++.so.6
[00:39:36] [debugf757b000 f75bfb97 /lib32/libm.so.6
[00:39:36] [debugf755e000 f757a3c4 /usr/lib32/libgcc_s.so.1
[00:39:36] [debugf73b0000 f7565237 /lib32/libc.so.6
[00:39:36] [debugf76f1000 f77124a0 /lib/ld-linux.so.2
[00:39:36] [debugf7369000 f73ad3ac plugins/crashdetect.so
[00:39:36] [debugf733c000 f7367d70 plugins/profiler.so
[00:39:36] [debugf76e3000 f76ea09f /lib32/librt.so.1
[00:39:36] [debugf72dd000 f733baec plugins/mysql.so
[00:39:36] [debugf72ba000 f72db108 /home/samp03/plugins/../log-core.so
[00:39:36] [debugf6ea8000 f72bbe9f /home/samp03/plugins/../libmysqlclient.so.18
[00:39:36] [debugf76d6000 f76e13ef /lib32/libnss_files.so.2
[00:39:36] [debugf6696000 f66a59b4 plugins/sscanf.so
[00:39:36] [debugf65d0000 f6695740 plugins/streamer.so
[00:39:36] [debugf65c6000 f65ce7c4 plugins/Whirlpool.so
[00:39:36] [debugf64e1000 f65c8b50 plugins/pawncmd.so
[00:39:36] [debugf6341000 f64e8168 plugins/SKY.so 
Line 1739 is from a public Unban that, according to me, has not been used on the server nor at that time it also works well

PHP Code:
forward Unban(playeridname[]);
public 
Unban(playerid)
{
    if(
cache_num_rows())
    {
        new 
query[124], update[124], name[MAX_PLAYER_NAME], stringa[124];
        
cache_get_value_name(0"name"name);
        
mysql_format(dbquerysizeof(query), "DELETE FROM `bans` WHERE name = '%e'"name);
        
mysql_format(dbupdatesizeof(update), "UPDATE `accounts` SET `banned` = 0 WHERE name = '%e'"name);
        
mysql_tquery(dbquery);
        
mysql_tquery(dbupdate); // This line is the 1739.
        
SendClientMessage(playerid, -1"Unbanned %s.");
        
format(stringasizeof(stringa), "** Admin %s(%d) used the command /unban to %s."GetName(playerid), playeridname);
        
SendMessageToAdmins(0xC8C8C8FFstringa);


        new
        
File:lFile fopen("db/logs/logs_unban.txt"io_append),
        
logData[178],
        
fyearfmonthfday,
        
fhourfminutefsecond;

        
getdate(fyearfmonthfday);
        
gettime(fhourfminutefsecond);

        
format(logDatasizeof(logData),"[%02d/%02d/%04d %02d:%02d:%02d] (ADMIN NIVEL %d) %sunbanned to %s.\r\n"fdayfmonthfyearfhourfminutefsecondPlayerInfo[playerid][Admin], GetName(playerid), name);
        
fwrite(lFilelogData);

        
fclose(lFile);
    }
    else
    {
        
SendClientMessage(playerid, -1"not found");
    }
    return 
1;

Ertouq is offline   Reply With Quote
Old 04/06/2020, 06:38 AM   #2
SharpenBlade
Huge Clucker
 
Join Date: May 2020
Posts: 202
Reputation: 25
Default Re: big backtrace

SendClientMessage(playerid,*-1,*"Unbanned*%s.");
You can't do that... try this:
PHP Code:
new string[128];
format(stringsizeof(string), "Unbanned %s"name);
SendClientMessage(playerid, -1string); 
SharpenBlade is offline   Reply With Quote
Old 04/06/2020, 07:02 AM   #3
Ertouq
Huge Clucker
 
Ertouq's Avatar
 
Join Date: Jul 2014
Posts: 236
Reputation: 4
Default Re: big backtrace

Quote:
Originally Posted by SharpenBlade View Post
SendClientMessage(playerid,*-1,*"Unbanned*%s.");
You can't do that... try this:
PHP Code:
new string[128];
format(stringsizeof(string), "Unbanned %s"name);
SendClientMessage(playerid, -1string); 
Oh my god... I didn't notice that. Mistakes that happen when you do everything fast. Thank you.
Ertouq is offline   Reply With Quote
Old 04/06/2020, 07:04 AM   #4
SharpenBlade
Huge Clucker
 
Join Date: May 2020
Posts: 202
Reputation: 25
Default Re: big backtrace

Quote:
Originally Posted by Ertouq View Post
Oh my god... I didn't notice that. Mistakes that happen when you do everything fast. Thank you.
You are welcome.
SharpenBlade is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AMX Backtrace Dev69 Scripting Help 2 07/06/2019 07:46 AM
AMX Backtrace pulsare Server Support 3 21/01/2018 03:01 PM
AMX backtrace Klayton Scripting Help 3 01/11/2017 12:47 PM
Backtrace iLearner Scripting Help 1 20/11/2016 05:23 PM
[Ajuda] Backtrace RodrigoBsC Português/Portuguese 5 27/07/2014 08:39 PM


All times are GMT. The time now is 06:19 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.