View Single Post
09/17/15, 02:57 AM   #6
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,585
Originally Posted by Motokosworld View Post
The problem is, it work 1 time if i open the bank and then again if i open the bank again. SO i think the loop do not work, but why?
That's what you are doing with your code. You react to EVENT_OPEN_BANK which is fired once when the bank opens, so it only runs one time when you open the bank and again when you open the bank another time.
If you want it to run again while you are still at the bank you need to provide a different way to trigger the function.
  Reply With Quote