1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Fill your cup and take your pick among the maps best suited for this year's Hive Cup. The 6th Melee Mapping Contest Poll is up!
    Dismiss Notice
  4. Shoot to thrill, play to kill. Sate your hunger with the 33rd Modeling Contest!
    Dismiss Notice
  5. Do you hear boss music? It's the 17th Mini Mapping Contest!
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Adding another player

Discussion in 'Triggers & Scripts' started by Matt V., Aug 12, 2019.

  1. Matt V.

    Matt V.

    Joined:
    Aug 3, 2019
    Messages:
    38
    Resources:
    0
    Resources:
    0
    Hello, I have an issue of adding second player to the game. When I do add second player and try to save- I get this message from JassHelper-
    Line 877: Function redeclared: CreateUnitsForPlayer4
    Line 499: ----Previous declaration.

    I believe this is pretty simple compared to things you solve here, so I bet it'll be an easy task to solve for most of you.. not for me though :(
    However, if I don't add player 4 in player properties, I can safely save and exit and play the map without a problem.. also works like that if I remove all units of player 4 but keep him there in the player properties.
    Also, player 2 and 3 are AI, and it works perfectly to add/delete them. It's just the goddamn player thing.

    I'm pretty n00b at this, so apologies if there is just some simple mistake.
    I really hope you can help me, because I have done everything in the map, this was one of the last things I've done in the edit. By the way I have added everyone in the forces, in case that's what you need to know.
    Thanks for your help and tolerance,
    Matt.

    UPDATE- I have played with this myself a bit, and funnily enough, all I had to do was to change player 5 for player 8.. and then it worked without a single problem. I dont know how, but it did. So feel free to tell me the reason why it didn't work, because im very curious about this.
     

    Attached Files:

    Last edited: Aug 12, 2019
  2. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    26,077
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    You will need to explain how to recreate this. Such as provide a demonstration map which one can apply some sequence of operations to in order to produce the error. This information could then be forwarded to William and hopefully added as a tracked bug.