mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 06:48:04 +03:00
removed rescode()
This commit is contained in:
parent
221375b730
commit
2a57fa02ca
@ -155,12 +155,18 @@ public adminSql() {
|
|||||||
|
|
||||||
new Result:Res = dbi_query(sql,"SELECT auth,password,access,flags FROM admins")
|
new Result:Res = dbi_query(sql,"SELECT auth,password,access,flags FROM admins")
|
||||||
|
|
||||||
if (rescode(Res) < 0) {
|
if (Res == RESULT_FAILED) {
|
||||||
dbi_error(sql,error,127)
|
dbi_error(sql,error,127)
|
||||||
server_print("[AMXX] SQL error: can't load admins: '%s'",error)
|
server_print("[AMXX] SQL error: can't load admins: '%s'",error)
|
||||||
|
dbi_free_result(Res)
|
||||||
|
dbi_close(Sql)
|
||||||
return PLUGIN_HANDLED
|
return PLUGIN_HANDLED
|
||||||
} else if (rescode(Res) == 0) {
|
}
|
||||||
|
else if (Res == RESULT_NONE) {
|
||||||
server_print("[AMXX] No admins found.")
|
server_print("[AMXX] No admins found.")
|
||||||
|
dbi_free_result(Res)
|
||||||
|
dbi_close(Sql)
|
||||||
|
return PLUGIN_HANDLED
|
||||||
}
|
}
|
||||||
|
|
||||||
new szFlags[32],szAccess[32]
|
new szFlags[32],szAccess[32]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user