Scheduler is bugged



  • Recieing script errors that shouldn't be there at the time, running the script in the normal bas everything runs fine and even has ignore errors.
    "bot1 [987858374] [12:26:28] Thread #1 : Thread ended with message "ReferenceError: Can't find variable: VAR_NEW_LIST4 during execution of action 987858374"
    "
    Something is wrong with Scheduler



  • @rekaa0251 said in Scheduler is bugged:

    Recieing script errors that shouldn't be there at the time, running the script in the normal bas everything runs fine and even has ignore errors.
    "bot1 [987858374] [12:26:28] Thread #1 : Thread ended with message "ReferenceError: Can't find variable: VAR_NEW_LIST4 during execution of action 987858374"
    "
    Something is wrong with Scheduler

    Most likely you use the "OnApplicationStart" function or the "Run function in several threads" action with local variables. To transfer data to these functions, you must use global variables or resources.

    0_1560078094785_7339d34c-5a95-4ffe-ba68-b4efeae22ec0-изображение.png



  • @fox I'm only using 1 thread, the "var_new_list4" shouldn't even be called at the time it's happening in the scheduler but is working perfectly in normal. The new list is also in the same function as the corresponding elements.



  • it seems u perform any action (maybe if statement?) on variable that wasnt yet set.



  • @yourfriendkarol I found what it's doing, it's calling the "RANDOM_LIST_ELEMENT4" before it even creates the "NEW_LIST4"
    So it tries to take an element from a list that doesn't yet exist but this does not happend in normal bas lmao



  • @rekaa0251 said in Scheduler is bugged:

    @yourfriendkarol I found what it's doing, it's calling the "RANDOM_LIST_ELEMENT4" before it even creates the "NEW_LIST4"
    So it tries to take an element from a list that doesn't yet exist but this does not happend in normal bas lmao

    Restart the script in "record" mode:
    0_1560080183111_556c9653-b89c-4e2c-9d51-a708c4142f52-изображение.png

    and you will have the same mistake



  • @fox No errors displaying but i found out what was wrong, a label was wrongly named since i copied functions. That didn't affect the debugger bas but it did with schedueler! Thanks anyway. Works now


Log in to reply
 

  • 2
  • 7
  • 5
  • 3
  • 8
  • 2
  • 5
  • 2