Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Team Points

Comments in 'Plugin Development' started by Marcelo234, Jan 19, 2016.

  1. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    Hey Guys,at tiime i am programming a Minigame..... There are 4 Teams....After the game started every Team have 20 Points.... If A Player from the Red Team kill someone from another Team the Red Team get +1 point, and The Team of the Killed Player lose -1 point..The game is over If one Team has 0 Points.... ..After a game finished the Points will delete.. . And If A New game Start the Points will Reset for every Team to 20.... But how to write a Code who managed the Points of the different Teams....can someone help? Tanks. ☺
  2. TheDeibo
    Offline

    TheDeibo Notable Member

    Joined:
    Sep 8, 2014
    Posts:
    693
    Minecraft User:
    TheDeibo
    i hope this isnt a repeated thread. here is a helpful hint, most people dont like people repeatimg threads
    :)
    applqpak likes this.
  3. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    Sorry but one Guy said i should Post it there the other there and another there! I only want a answer
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    https://PHP.net/arrays
    https://PHP.net/count
    https://PHP.net/operators.increment
    Also, statements are delimited by semicolons.
  5. Hittmana
    Offline

    Hittmana Active Member

    Joined:
    Jul 26, 2015
    Posts:
    224
    Minecraft User:
    move_it
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    This is not just not exact. It is simply wrong. How could you compare an array to an ing with equality?
  7. TheDeibo
    Offline

    TheDeibo Notable Member

    Joined:
    Sep 8, 2014
    Posts:
    693
    Minecraft User:
    TheDeibo
    PEMapModder was simply showing the best places for you to look at. :)
  8. Hittmana
    Offline

    Hittmana Active Member

    Joined:
    Jul 26, 2015
    Posts:
    224
    Minecraft User:
    move_it
    I am sorry if the code i posted was incorrect and caused any problems for you. Please take the advice of @PEMapModder as he knows more about this than me.
    I am sorry for posting faulty code and will remove it. I am new to plugin (and php) dev. and was trying to help with what i knew.
    Marcelo234 likes this.
  9. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    No Problem
    Hittmana likes this.
  10. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Not trying to be mean or anything but if you are unsure about the answer for a question, just don't reply at all.

Share This Page

Advertisement