Thread: c.stillGfx method not working

Results 1 to 4 of 4
  1. #1 c.stillGfx method not working 
    Registered Member
    Join Date
    Sep 2015
    Posts
    68
    Thanks given
    41
    Thanks received
    75
    Rep Power
    36
    When using the following code:
    Code:
    if (npcs[i].npcType == 2043)
    c.getPA().stillGfx(271, coords[1][1], coords[1][2], c.heightLevel, 2);
    the server throws a fatal exception at me:
    Code:
    [13-1-17 14:02]: java.lang.ArrayIndexOutOfBoundsException: 2
    [13-1-17 14:02]: A fatal exception has been thrown!
    [13-1-17 14:02]: 	at server.model.npcs.NPCHandler.attackPlayer(NPCHandler.java:2434)
    [13-1-17 14:02]: 	at server.model.npcs.NPCHandler.process(NPCHandler.java:1209)
    [13-1-17 14:02]: 	at server.Server.main(Server.java:159)
    Anyone who knows how to get around this fatal exception?
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Has nothing to do with your still gfx, coords[1][2] is the problem the '2' is out of bounds. so your array only contains 0 and 1
    Reply With Quote  
     

  4. Thankful user:


  5. #3  
    Registered Member
    Join Date
    Sep 2015
    Posts
    68
    Thanks given
    41
    Thanks received
    75
    Rep Power
    36
    Quote Originally Posted by Nighel View Post
    Has nothing to do with your still gfx, coords[1][2] is the problem the '2' is out of bounds. so your array only contains 0 and 1
    Thanks! Really helped me out.
    Reply With Quote  
     

  6. Thankful users:


  7. #4  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Quote Originally Posted by dyzes View Post
    Thanks! Really helped me out.
    No problem bro
    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. Client not working for You? READ!
    By Edge in forum Tutorials
    Replies: 59
    Last Post: 02-06-2020, 09:27 AM
  2. Replies: 14
    Last Post: 01-04-2015, 11:55 PM
  3. C# Method not working?
    By Optimum in forum Application Development
    Replies: 3
    Last Post: 08-01-2014, 06:37 PM
  4. Replies: 7
    Last Post: 06-13-2010, 11:38 AM
  5. Replies: 17
    Last Post: 11-30-2007, 04:15 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •