This commit is contained in:
neon 2019-10-03 14:17:43 +02:00
parent 6ffdbde668
commit 4c49d92411
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ public Action Command_Hide(int client, int args)
return Plugin_Handled;
}
g_iHideDistance[client] = iDistance;
g_iHideDistance[client] = iDistance^2;
ReplyToCommand(client, "[Hide] Humans within range %d are now hidden.", g_iHideDistance[client]);
return Plugin_Handled;
}

View File

@ -232,7 +232,7 @@ public void SQL_OnDatabaseConnect(Database db, const char[] error, any data)
g_hDatabase = db;
char sQuery[256];
Format(sQuery, sizeof(sQuery), "CREATE TABLE IF NOT EXISTS halloween_table (`steam_auth` varchar(64), `name` varchar(256), `collected` int(16), PRIMARY KEY (`steam_auth`))");
Format(sQuery, sizeof(sQuery), "CREATE TABLE IF NOT EXISTS halloween_table (`steam_auth` varchar(64), `name` varchar(256), `collected` int(16), PRIMARY KEY (`steam_auth`), INDEX (`collected`))");
g_hDatabase.Query(SQL_OnTableCreated, sQuery, _, DBPrio_High);
}