• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Segfault problem

Status
Not open for further replies.
Level 10
Joined
Mar 31, 2009
Messages
732
I'm having trouble with a segfault at map initialisation, and have narrowed it down to this chunk of code:

  • Actions
    • For each (Integer A) from 0 to 11, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Player((Integer A))) slot status) Equal to Is playing
            • numLosses[(Integer A)] Greater than or equal to NUMCAPTURESTOLOSE
          • Then - Actions
            • Game - Defeat (Player((Integer A))) with the message: Defeat!
          • Else - Actions
Can anyone tell me what I've done wrong? I'm guessing its to do with the player indicies, but... what should they be? 1 to 12?

Edit: solved by making the loop "1 to Game - Number of players". No delete button for this thread.
 
Last edited:
Status
Not open for further replies.
Top