Thread: Server Message if someone gets 2 kill streak

Results 1 to 6 of 6
  1. #1 Server Message if someone gets 2 kill streak 
    Extreme Donator

    Join Date
    Oct 2009
    Posts
    247
    Thanks given
    34
    Thanks received
    4
    Rep Power
    0
    This is PI

    basically, i want it when Someones killstreak is 5, Server Message (everyone will see it) will say "This player has just gotten a 5 killstreak"

    This Is in Playerassisant under applydead


    but this is the error, how would i fix this? Will Repp++ and Thank++


    src\server\model\players\PlayerAssistant.java:1516 : c2 is already defined in app
    lyDead()
    Client c2 = (Client)Server.playerHandler.players
    [j];
    ^
    Note: src\server\world\map\C.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .



    this is my code

    Code:
    		for (int j = 0; j < Server.playerHandler.players.length; j++) {
    			if (Server.playerHandler.players[j] != null) {			
    				Client c2 = (Client)Server.playerHandler.players[j];
    					     if(c.cStreak == 2){				
    				    c2.sendMessage("<shad=1><col=1532963>"+ Misc.optimizeText(c.playerName) +" is on a 5 Kill Streak!");
    				}
    			}	
    		}
    Reply With Quote  
     

  2. #2  
    Extreme Donator

    Join Date
    Oct 2009
    Posts
    247
    Thanks given
    34
    Thanks received
    4
    Rep Power
    0
    Will Donate $ for help.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Freezia's Avatar
    Join Date
    Feb 2011
    Posts
    6,013
    Thanks given
    1,147
    Thanks received
    758
    Rep Power
    1311
    I don't have the solution and even as a good idea as this may seem it will be kinda annoying...


    Host your RUNESCAPE PRIVATE SERVER on the cheapest and flagship provider on Rune-Server! Now equipped with DDOS Protection!.


    Reply With Quote  
     

  4. #4  
    Extreme Donator

    Join Date
    Oct 2009
    Posts
    247
    Thanks given
    34
    Thanks received
    4
    Rep Power
    0
    Quote Originally Posted by Freezia View Post
    I don't have the solution and even as a good idea as this may seem it will be kinda annoying...
    It'll only happen when someone gets a Killstreak of 5 and 10.

    also, i saw a similar thread and someone said declare an int in player class how and why would i do this?

    http://www.rune-server.org/runescape...cation-pi.html
    Reply With Quote  
     

  5. #5  
    MOD DESIGNER RM MORE COMING


    TheeRash's Avatar
    Join Date
    Dec 2010
    Age
    30
    Posts
    5,128
    Thanks given
    639
    Thanks received
    2,123
    Rep Power
    5000
    Read the error.

    Code:
    	for (int j = 0; j < Server.playerHandler.players.length; j++) {
    			if (Server.playerHandler.players[j] != null) {			
    					     if(c.cStreak == 2){				
    				    c2.sendMessage("<shad=1><col=1532963>"+ Misc.optimizeText(c.playerName) +" is on a 5 Kill Streak!");
    				}
    			}	
    		}


    Feel free to message me with any questions you may have - any offers of work will not be considered unless details are in the subject.
    Attached imageAttached imageAttached image
    Reply With Quote  
     

  6. #6  
    Extreme Donator

    Join Date
    Oct 2009
    Posts
    247
    Thanks given
    34
    Thanks received
    4
    Rep Power
    0
    Quote Originally Posted by Thee Rash View Post
    Read the error.

    Code:
    	for (int j = 0; j < Server.playerHandler.players.length; j++) {
    			if (Server.playerHandler.players[j] != null) {			
    					     if(c.cStreak == 2){				
    				    c2.sendMessage("<shad=1><col=1532963>"+ Misc.optimizeText(c.playerName) +" is on a 5 Kill Streak!");
    				}
    			}	
    		}
    Ik that obv, and i fixed it with the help of Monster, thanks anyways guys.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Kill Streak + Entitlement + HD Video
    By MyQuests in forum Tutorials
    Replies: 31
    Last Post: 11-06-2012, 11:46 PM
  2. Auto Kill Message Text
    By CTucker in forum Tutorials
    Replies: 7
    Last Post: 03-14-2010, 07:54 AM
  3. Different kill message
    By Dexter Morgan in forum Snippets
    Replies: 29
    Last Post: 10-14-2009, 11:39 PM
  4. Replies: 11
    Last Post: 02-16-2009, 12:25 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •