• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

map crash!! (player status fault)

Status
Not open for further replies.
Level 5
Joined
Sep 22, 2012
Messages
90
peepz, this is urgent

I'm trying to add player number into an array, if the player is playing then add their player number to my array:

  • Initialize
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Game - Set game speed to Fastest
      • Game - Lock the game speed
      • Game - Disable ally color button and Disable creep camp button
      • Game - Enable selection and deselection functionality (Disable selection circles)
      • Game - Disable drag-selection functionality (Disable drag-selection box)
      • Game - Disable pre-selection functionality (Enable pre-selection circles, life bars, and object info)
      • Player - Turn Gives bounty On for Neutral Hostile
      • Player Group - Make (All players) treat (All players) as an Enemy
      • Camera - Change camera smoothing factor to 3.00
      • Set INIT_callplayers = 1
      • Set active_player_max = 0
      • For each (Integer INIT_callplayers) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player(INIT_callplayers)) controller) Equal to User
            • Then - Actions
              • Unit - Create 1 Pick for (Player(INIT_callplayers)) at (Center of playarea <gen>) facing Default building facing degrees
              • Set active_player_max = (active_player_max + 1)
              • Set active_players[active_player_max] = INIT_callplayers
              • -------- addpress --------
              • Trigger - Add to arrowpressleft <gen> the event (Player - (Player(INIT_callplayers)) Presses the Left Arrow key)
              • Trigger - Add to arrowpressright <gen> the event (Player - (Player(INIT_callplayers)) Presses the Right Arrow key)
              • Trigger - Add to arrowpressup <gen> the event (Player - (Player(INIT_callplayers)) Presses the Up Arrow key)
              • Trigger - Add to arrowpressdown <gen> the event (Player - (Player(INIT_callplayers)) Presses the Down Arrow key)
              • -------- removepress --------
              • Trigger - Add to arrowreleasedown <gen> the event (Player - (Player(INIT_callplayers)) Releases the Down Arrow key)
              • Trigger - Add to arrowreleaseleft <gen> the event (Player - (Player(INIT_callplayers)) Releases the Left Arrow key)
              • Trigger - Add to arrowreleaseright <gen> the event (Player - (Player(INIT_callplayers)) Releases the Right Arrow key)
              • Trigger - Add to arrowreleaseup <gen> the event (Player - (Player(INIT_callplayers)) Releases the Up Arrow key)
              • Game - Display to (All players) the text: -------------------...
              • Game - Display to (All players) the text: (player name: + (Name of (Player(active_players[INIT_callplayers]))))
              • Game - Display to (All players) the text: (INDEX: + ((String(INIT_callplayers)) + (NUMBER: + (String(active_players[INIT_callplayers])))))
              • Game - Display to (All players) the text: -------------------...
            • Else - Actions
      • -------- adsgfsadg --------
      • Game - Display to (All players) the text: (number of players: + (String(active_player_max)))
      • Set active_player_min = 1
the thing is when i run the map on single player then use 7th slot for players, my map results into a FATAL ERROR!!!!!!!!!!! need help T_T
 
Status
Not open for further replies.
Top