From 8e351d74d08d59a9b96c876e6a1ba29ae10cf522 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Fri, 2 Apr 2004 12:36:46 +0000 Subject: [PATCH] fixed g_aNum --- plugins/admin_mysql.sma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/admin_mysql.sma b/plugins/admin_mysql.sma index 08767e9b..688aaf46 100755 --- a/plugins/admin_mysql.sma +++ b/plugins/admin_mysql.sma @@ -42,7 +42,7 @@ new g_aPassword[MAX_ADMINS][32] new g_aName[MAX_ADMINS][32] new g_aFlags[MAX_ADMINS] new g_aAccess[MAX_ADMINS] -new g_aNum = 0 +new g_aNum #if !defined NO_STEAM new g_cmdLoopback[16] #endif @@ -109,6 +109,7 @@ public adminSql() { } new szFlags[32],szAccess[32] + g_aNum = 0 while( mysql_nextrow(mysql) > 0 ) { mysql_getfield(mysql, 1, g_aName[ g_aNum ] ,31) @@ -134,7 +135,6 @@ public cmdReload(id,level,cid) if (!cmd_access(id,level,cid,1)) return PLUGIN_HANDLED - g_aNum = 0 adminSql() // Re-Load admins accounts return PLUGIN_HANDLED