summaryrefslogtreecommitdiff
path: root/npc/functions/array.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-02-10 02:09:16 -0200
committerJesusaves <cpntb1@ymail.com>2019-02-10 02:09:16 -0200
commit2370dd22316c21d1b621258ed58ba8fe213424df (patch)
treee9532a0069110d28fc460c530cab358c2388da47 /npc/functions/array.txt
parent36040a2d577264bf8460ae1851ffdac622969381 (diff)
downloadserverdata-2370dd22316c21d1b621258ed58ba8fe213424df.tar.gz
serverdata-2370dd22316c21d1b621258ed58ba8fe213424df.tar.bz2
serverdata-2370dd22316c21d1b621258ed58ba8fe213424df.tar.xz
serverdata-2370dd22316c21d1b621258ed58ba8fe213424df.zip
I might have found the bug
Diffstat (limited to 'npc/functions/array.txt')
-rw-r--r--npc/functions/array.txt18
1 files changed, 0 insertions, 18 deletions
diff --git a/npc/functions/array.txt b/npc/functions/array.txt
index 4da22b6fe..1a106175e 100644
--- a/npc/functions/array.txt
+++ b/npc/functions/array.txt
@@ -71,24 +71,6 @@ function script array_find {
freeloop(false);
return -1;
}
-// array_find2(<array>, <needle>)
-// Simplified version
-// if not found it returns -1
-
-function script array_find2 {
- .@size = getarraysize(getarg(0));
- freeloop(true);
-
- for (.@i = getarrayindex(getarg(0)); .@i < .@size; ++.@i) {
- if (getelementofarray(getarg(0), .@i) == getarg(1)) {
- freeloop(false);
- return true;
- }
- }
-
- freeloop(false);
- return -1;
-}