small fix

This commit is contained in:
Felix Geyer 2004-08-13 15:01:14 +00:00
parent 310ad81849
commit ae893f79f1
2 changed files with 6 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* AMX Mod X script.
a/* AMX Mod X script.
* Admin Base Plugin
*
* by the AMX Mod X Development Team
@ -103,8 +103,7 @@ public plugin_init() {
#endif
}
public plugin_cfg()
{
public plugin_cfg() {
new configFile[64],curMap[32]
get_configsdir(configFile,31)
get_mapname(curMap,31)
@ -114,8 +113,7 @@ public plugin_cfg()
}
#if !defined USING_SQL
loadSettings(szFilename[])
{
loadSettings(szFilename[]) {
if (!file_exists(szFilename)) return 0
new szText[256], szFlags[32], szAccess[32]
@ -159,7 +157,7 @@ public adminSql() {
return PLUGIN_HANDLED
}
dbi_query(sql,"CREATE TABLE IF NOT EXISTS `%s` ( `auth` VARCHAR( 32 ) NOT NULL, `password` VARCHAR( 32 ) NOT NULL, `access` VARCHAR( 32 ) NOT NULL, `flags` VARCHAR( 32 ) NOT NULL ) COMMENT = 'AMX Mod X Admins'",table);
dbi_query(sql,"CREATE TABLE IF NOT EXISTS `%s` ( `auth` VARCHAR( 32 ) NOT NULL, `password` VARCHAR( 32 ) NOT NULL, `access` VARCHAR( 32 ) NOT NULL, `flags` VARCHAR( 32 ) NOT NULL ) COMMENT = 'AMX Mod X Admins'",table)
new Result:Res = dbi_query(sql,"SELECT `auth`,`password`,`access`,`flags` FROM `%s`",table)

View File

@ -392,7 +392,7 @@ public cmdVoteKickBan(id,level,cid) {
switch (activity) {
case 2: client_print(players[i],print_chat,"%L",
players[i],"ADMIN_VOTE_FOR_2",lTag,name,lKickBan,arg)
case 1: client_print(players[i],print_chat,"%s: vote %s for %s",
case 1: client_print(players[i],print_chat,"%L",
players[i],"ADMIN_VOTE_FOR_1",lTag,lKickBan,arg)
}
}