Whats wrong with this code?

ultimate11

Active Member
Reaction score
25
So ?I have this code that is supossed to calculate the players top based on players overall score.It work fine if players score arent equal.
Trigger:
  • For each (Integer A) from 2 to 5, do (Actions)
    • Loop - Actions
      • Set Score_total[(Integer A)] = ((Player((Integer A))) Total Overall Score)
    • //////this isnt in loop dont know why it show here so....
    • Player Group - Pick every player in PPL_gr and do (Actions)
      • Loop - Actions
        • For each (Integer A) from 1 to 4, do (Actions)
          • Loop - Actions
            • Set Score = Score_total[((Integer A) + 1)]
            • Set B = ((Integer A) + 1)
            • For each (Integer B) from 1 to 4, do (Actions)
              • Loop - Actions
                • Set C = (C + 1)
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • Score Greater than or equal to Score_total[((Integer B) + 1)]
                  • Then - Actions
                    • Set Rank<b> = (Rank<b> + 1)
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • If - Conditions
                        • C Equal to 4
                      • Then - Actions
                        • If (Rank<b> Equal to 4) then do (Set Top[1] = (Player(B))) else do (Do nothing)
                        • If (Rank<b> Equal to 3) then do (Set Top[2] = (Player(B))) else do (Do nothing)
                        • If (Rank<b> Equal to 2) then do (Set Top[3] = (Player(B))) else do (Do nothing)
                        • If (Rank<b> Equal to 1) then do (Set Top[4] = (Player(B))) else do (Do nothing)
                      • Else - Actions
                  • Else - Actions
    • </b></b></b></b></b></b>

I realy do have a Brain Storm can anyone bring knowleadge to my mind? :) PLS
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
no idea what you are doing there, can i see the trigger you use to add the score? because sorting should be tied to that...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top