amx backtrace
#3

Sorry i did not respond in time ,
PHP Code:
stock fatal(text[], LOGGER_FIELD:...) {
    new 
total numargs();

    if (
total == 1) {
        print(
_:_s("text"text));
        return;
    }

    new 
result[MAX_EVENT_LENGTH];
    
strcat(resulttext);

    for(new 
arg 1arg total && arg MAX_EVENT_FIELDS; ++arg) {
        new 
field[MAX_FIELD_LENGTH];
        for(new 
chch MAX_FIELD_LENGTH; ++ch) {
            
field[ch] = getarg(argch);
            if(
field[ch] == EOS) {
                
strcat(result" ");
                
strcat(resultfield);
                break;
            }
        }
    }

    print(
result);
    
PrintAmxBacktrace();

    
// trigger a crash to escape the gamemode
    
new File:fopen("nonexistentfile"io_read), tmp[1];
    
fread(ftmp);
    
fclose(f);

Reply


Messages In This Thread
amx backtrace - by XSharkX - 31.05.2018, 03:51
Re: amx backtrace - by Calisthenics - 31.05.2018, 10:56
Re: amx backtrace - by XSharkX - 31.05.2018, 16:27
Re: amx backtrace - by J0sh... - 31.05.2018, 16:31
Re: amx backtrace - by Calisthenics - 31.05.2018, 16:34
Re: amx backtrace - by XSharkX - 31.05.2018, 16:48

Forum Jump:


Users browsing this thread: 1 Guest(s)