31.05.2018, 16:27
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(result, text);
for(new arg = 1; arg < total && arg < MAX_EVENT_FIELDS; ++arg) {
new field[MAX_FIELD_LENGTH];
for(new ch; ch < MAX_FIELD_LENGTH; ++ch) {
field[ch] = getarg(arg, ch);
if(field[ch] == EOS) {
strcat(result, " ");
strcat(result, field);
break;
}
}
}
print(result);
PrintAmxBacktrace();
// trigger a crash to escape the gamemode
new File:f = fopen("nonexistentfile", io_read), tmp[1];
fread(f, tmp);
fclose(f);
}