17.08.2014, 05:09
(
Последний раз редактировалось Aerotactics; 17.08.2014 в 08:02.
)
This timer is teleporting me back and forth repeatedly.
So your script is supposed to handle too many portals (as the loop tells), isn't it? Well, I bet that this loop can never check any other portals than ID (i) 0 due to the way you use return inside the loop. Simply remove the return in else statement, this might not solve your main problem though, but it will surely make it check other portals.
|
On the else statement? No, don't use break or return. You should let the loop continue checking other portals (tell me if you don't get this part). On if or else-if statements, it doesn't matter since you have no code after the loop so break or return both of them will get the job done.
|