
09-27-2006, 04:21 PM
|
|
¯\(º_o)/¯
|
 |
Join Date: Sep 2006
Location: Norway
Posts: 2,815
|
|
|
temp.modz = clientr.mods;
while (temp.modz.index("stealthup") >= 0) {
temp.stealthtime += temp.modz[temp.modz.index("stealthup")+1];
temp.modz.delete(temp.modz.index("stealthup")+1);
temp.modz.delete(temp.modz.index("stealthup"));
}
if the last member of temp.modz is "stealthup" and you do
temp.modz.delete(temp.modz.index("stealthup")+1);
why delete the member after "stealthup" if that was the last member?
correct me if I am wrong
and why you have two
temp.modz.delete(temp.modz.index("stealthup")+1);
temp.modz.delete(temp.modz.index("stealthup")); ?
or secret?
oh and also, if last member is "stealthup" (again)
why use
temp.stealthtime += temp.modz[temp.modz.index("stealthup")+1];?
(not sure if this would do something that I can't see in the script)
and again, correct me if I am wrong |
|
|
|