View Single Post
  #7  
Old 05-24-2010, 04:56 AM
Deeek Deeek is offline
o_O
Deeek's Avatar
Join Date: Jul 2008
Location: Freeburg, Missouri
Posts: 167
Deeek will become famous soon enough
I was looking this over and noticed something:
PHP Code:
if (params[0] == "sparEnded") { 
    for (
pl:players) { 
      
this.sparring false
      
this.inspar false
      if (
pl.account != this.dead && InSpar(pl)) { 
       
player.chat="sparEnded2"
        
temp.good player.account
        
triggerServer("gui"name"addStreak",temp.good); 
      } 
    } 
  } 
-Looks as if temp.good is being carried over, but isn't being used in serverside?
PHP Code:
if (params[0] == "addStreak") { 
  
player.chat="addStreakBegin"
    
//for (pl:players) { 
      //if (params[1] == pl.account) { 
      
player.chat=params[1]; 
        if (
serverr.win_streak_acc == params[1]) { 
          
serverr.win_streak_num+=1
          
player.chat="addStreak1"
          
triggerClient("gui"nameNULL); 
        } else { 
          
serverr.win_streak_acc params[1]; 
          
serverr.win_streak_num 1
          
player.chat="addStreak2"
          
triggerClient("gui"nameNULL); 
        } 
      
//} 
    //} 
  


Sorry, but can someone explain the reasoning behind this? (if there is one)
__________________
God grant me the serenity to accept the things I cannot change, the courage to change the things I can... and the wisdom to know the difference.
Reply With Quote