Jump to content
  • 0

Infinity Loop


Mrew2

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/06/14
  • Last Seen:  

I have this script that every two hours spawns one chest on a random map. When the chest is spawned, it adds one to a variable. When the server restarts, this variable is checked and for every set above 0, it spawns a chest. For example, if the variable is set to 11 before the server goes down, 11 chests will be spawned on server start up on a random map. Well... I've left my server on for quite a while and when I ended up shutting it down and turning it back on, it seems the variable is too large and thus the console thinks it is an infinity loop and thus ignores the npc after spawning a certain amount of chests. Is there a way to circumvent this without having to destroy chests?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   46
  • Joined:  08/14/12
  • Last Seen:  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...