summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-04 21:23:48 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-04 21:23:48 -0200
commit0c19f95b5f1b342189fd63224bfd6d0396da7b54 (patch)
treeca2a7b37e2dcc552c8af55e6733734535bdcdb5b /npc/functions/util.txt
parent831bd5ef2deeb246a07e1670ce933fb228921e2a (diff)
downloadserverdata-0c19f95b5f1b342189fd63224bfd6d0396da7b54.tar.gz
serverdata-0c19f95b5f1b342189fd63224bfd6d0396da7b54.tar.bz2
serverdata-0c19f95b5f1b342189fd63224bfd6d0396da7b54.tar.xz
serverdata-0c19f95b5f1b342189fd63224bfd6d0396da7b54.zip
Fix DelAccRegFromEveryPlayer
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index e9a5b444a..a97fe3521 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -25,7 +25,7 @@ function script DelItemFromEveryPlayer {
// WARNING, irreversible and dangerous!
// DelAccRegFromEveryPlayer( KEY )
function script DelAccRegFromEveryPlayer {
- if (getarg(0, -1) < 0)
+ if (getarg(0, "error") == "error")
return;
query_sql("DELETE FROM `acc_reg_num_db` WHERE `key`="+getarg(0));