You can run this and look in log file if the log you are trying to register does exist, and if it exists if you have correctly formulated it.
Spoiler
PHP Code:
#include <amxmodx>
new g_iState
public plugin_init() { state Stopped register_plugin("LogEvents Logger", "1.0.0", "connorr") register_srvcmd("logevents", "ServerCommand_LogEvents", _, "<print> | <log> | <stop>") }
public plugin_log() <Stopped> {} public plugin_log() <Running> { static szMain[256], szDetail[256], szRegistered[256] static iArgsNum, n, m, szTemp[64]
read_logdata(szMain, charsmax(szMain))
iArgsNum = read_logargc()
n = 0 m = formatex(szRegistered, charsmax(szRegistered), "register_logevent(^"function_name^", %d", iArgsNum)
for(new i; i<iArgsNum; i++) { read_logargv(i, szTemp, charsmax(szTemp)) n += formatex(szDetail[n], charsmax(szDetail)-n, "^n%d=%s", i, szTemp) m += formatex(szRegistered[m], charsmax(szRegistered)-m, ", ^"%d=%s^"", i, szTemp) } m += formatex(szRegistered[m], charsmax(szRegistered)-m, ")^n")