Thread: What does this mean?

Results 1 to 9 of 9
  1. #1 What does this mean? 
    Respected Member


    George's Avatar
    Join Date
    Mar 2009
    Posts
    7,099
    Thanks given
    2,226
    Thanks received
    3,146
    Rep Power
    5000
    Code:
    [2/28/10 2:48 AM]:      at server.Server.main(Server.java:131)
    [2/28/10 2:48 AM]: java.lang.ArithmeticException: / by zero
    [2/28/10 2:48 AM]:      at server.model.players.Client.process(Client.java:586)
    [2/28/10 2:48 AM]:      at server.model.players.PlayerHandler.process(PlayerHand
    ler.java:164)
    Line 586 in client.java

    Code:
           if (portalTimer1 == 0 && inPcGame()) {
                      Server.npcHandler.spawnANPC(server.model.minigames.PestControl.ra
    ndompcnpc(), 2630, 2592,0);
                      portalTimer1 = 20 + (100/playersInPc);
           }
    Attached image

    Spoiler for Spoilers!:
    Attached image
    Attached image
    Attached image
    Attached image
    Reply With Quote  
     

  2. #2  
    Gods of Pking
    Guest
    do u freeze wen the game starts?
    Reply With Quote  
     

  3. #3  
    Respected Member


    George's Avatar
    Join Date
    Mar 2009
    Posts
    7,099
    Thanks given
    2,226
    Thanks received
    3,146
    Rep Power
    5000
    Quote Originally Posted by Gods of Pking View Post
    do u freeze wen the game starts?
    Yes i do.
    Attached image

    Spoiler for Spoilers!:
    Attached image
    Attached image
    Attached image
    Attached image
    Reply With Quote  
     

  4. #4  
    Gods of Pking
    Guest
    yeah me to wen i added that, i just removed those codes and it works fine
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    Code:
                      Server.npcHandler.spawnANPC(server.model.minigames.PestControl.ra
    ndompcnpc(), 2630, 2592,0);
    Your client doesn't support the Pest Control NPCs.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Shamon King's Avatar
    Join Date
    Aug 2007
    Posts
    3,335
    Thanks given
    90
    Thanks received
    228
    Rep Power
    1363
    you cant divide by 0?
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    Ah!

    Change it to this:
    Code:
           if (portalTimer1 == 0 && inPcGame()) {
                      Server.npcHandler.spawnANPC(server.model.minigames.PestControl.ra
    ndompcnpc(), 2630, 2592,0);
                      portalTimer1 = 20 + (100/playersInPc+1);
           }
    Reply With Quote  
     

  8. #8  
    Respected Member


    George's Avatar
    Join Date
    Mar 2009
    Posts
    7,099
    Thanks given
    2,226
    Thanks received
    3,146
    Rep Power
    5000
    Quote Originally Posted by Jarba View Post
    Ah!

    Change it to this:
    Code:
           if (portalTimer1 == 0 && inPcGame()) {
                      Server.npcHandler.spawnANPC(server.model.minigames.PestControl.ra
    ndompcnpc(), 2630, 2592,0);
                      portalTimer1 = 20 + (100/playersInPc+1);
           }
    Thank you
    Attached image

    Spoiler for Spoilers!:
    Attached image
    Attached image
    Attached image
    Attached image
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    It was crashing due to there being no one in pest control, so it was dividing it by 0.
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •