Thread: [PI] StrykeWyrms [PI]

Results 1 to 4 of 4
  1. #1 [PI] StrykeWyrms [PI] 
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Hello guys i'm getting this error and need help fixing it...
    Code:
    src\server\model\players\ActionHandler.java:1092: error: cannot find symbol
                                                                            n.reques
    tTransform(strykes[j][1]);
                                                                             ^
      symbol:   method requestTransform(int)
      location: variable n of type NPC
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    and this is the code of which the error is in
    Code:
    case 9462:
    			case 9464:
    			case 9466:
    				final NPC n = NPCHandler.npcs[c.npcClickIndex];
    				if (n == null)
    					return;
    				final int[][] strykes = { {9462, 9463}, {9464, 9465}, {9466, 9467} };
    				EventManager.getSingleton().addEvent(new Event() {
    					int time = 2;
    					public void execute(EventContainer stomp) {
    						if (time == 2)
    							c.startAnimation(4278);
    							
    						if (time == 0) {
    							for (int j = 0; j < strykes.length; j++) {
    								if (n.npcType == strykes[j][0])
    									n.requestTransform(strykes[j][1]);
    							}
    							n.killerId = c.playerId;
    							n.facePlayer(c.playerId);
    							stomp.stop();
    						}
    						
    						if (time > 0)
    							time--;
    					}
    				}, 600);
    			break;
    I was wondering how I can declare the method and if anyone could help me fix this error it would be greatly appreciated.
    Reply With Quote  
     

  2. #2  
    Author of the first public OSRSPS

    Shadowy's Avatar
    Join Date
    Sep 2009
    Age
    28
    Posts
    1,499
    Thanks given
    490
    Thanks received
    241
    Rep Power
    307
    learn to read errors, if you want to progress in rsps you cant just let people keep telling u

    Code:
    src\server\model\players\ActionHandler.java:1092: error: cannot find symbol
                                                                            n.reques
    tTransform(strykes[j][1]);
                                                                             ^
      symbol:   method requestTransform(int)
      location: variable n of type NPC
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    file where the error is, and line number in that file

    cant find a field/variable e.g. an int or a boolean or a void

    in ur NPC class check u have a void called requestTransform(int id)
    Owner of OS-RSPS, the first Oldschool RuneScape Server (2014)
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Super Donator

    Batukka's Avatar
    Join Date
    Oct 2011
    Posts
    2,433
    Thanks given
    86
    Thanks received
    342
    Rep Power
    496
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Fixed thanks for the heads up shadowy!
    And batukka i already added it but thanks anyways!
    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. adding Strykewyrms [pi]
    By MrRawwrz in forum Help
    Replies: 2
    Last Post: 10-02-2011, 04:50 PM
  2. Replies: 1
    Last Post: 07-11-2010, 12:26 AM
  3. [PI]RuneXtreme[PI]
    By Itz_ in forum Projects
    Replies: 14
    Last Post: 07-08-2010, 10:59 PM
  4. [PI]Equipment[/PI]
    By CTucker in forum Help
    Replies: 2
    Last Post: 07-08-2010, 05:31 AM
  5. [PI]FantasyDream[PI]
    By Analed in forum Advertise
    Replies: 30
    Last Post: 06-05-2010, 09:03 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
  •