Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. vulgarwozard
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    vulgarwozard

    @vulgarwozard

    1
    Posts
    613
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    vulgarwozard Follow

    Posts made by vulgarwozard

    • Create an array in main loop

      I'm trying to create an array in my main loop to keep track of active squads of military creeps. The problem is that when the game detects that it needs to push a new squad to the array, it does it and the array returns length = 1, but as soon as the loop encounters the code again, the array length is 0 and it executes the push command again. Can anyone help me here? is there a problem with pushing strings into an array in the main loop? Is it possibly a scope issue?

      posted in Help
      vulgarwozard