Thread: [pi] compiling error

Results 1 to 3 of 3
  1. #1 [pi] compiling error 
    Registered Member IcEbLiTzMeHh's Avatar
    Join Date
    Jul 2010
    Posts
    241
    Thanks given
    3
    Thanks received
    16
    Rep Power
    4
    Im adding it so that when you fail to pickpocket an npc the npc says "What do you think you're doing?" but i get this error when i compile:

    Code:
    src\server\model\players\skills\Thieving.java:36: non-static method forceChat(ja
    va.lang.String) cannot be referenced from a static context
                                                    NPC.forceChat("What do you think you're doing?");
                                                       ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .


    I had been getting 2 errors before but i changed my code from:

    Code:
    npcs.forceChat("What do you think you're doing?");
    to:

    Code:
    NPC.forceChat("What do you think you're doing?");
    and added this import:

    Code:
    import server.model.npcs.NPC;
    Any help would be appreciated, will rep++

    Thanks,
    Arran

    Quote Originally Posted by onemorenight View Post


    plz i need the cape name who the guy is wearing
    Quote Originally Posted by Liam Baby View Post


    Never go full retard
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    May 2010
    Posts
    122
    Thanks given
    0
    Thanks received
    4
    Rep Power
    0
    all this mean is that you have set it to "STATIC" remove the static and it might make a diffrence
    Reply With Quote  
     

  3. #3  
    Registered Member IcEbLiTzMeHh's Avatar
    Join Date
    Jul 2010
    Posts
    241
    Thanks given
    3
    Thanks received
    16
    Rep Power
    4
    Uhm... I have no idea what ive to change/add...

    Do i have to change anything in this?:

    Code:
    NPC.forceChat("What do you think you're doing?");
    Ill keep trying in the mean time.

    Quote Originally Posted by onemorenight View Post


    plz i need the cape name who the guy is wearing
    Quote Originally Posted by Liam Baby View Post


    Never go full retard
    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. Compiling Error
    By deershoot3r in forum Help
    Replies: 2
    Last Post: 05-03-2010, 06:46 AM
  2. Compiling error
    By Dyllan in forum Help
    Replies: 5
    Last Post: 04-27-2010, 09:22 PM
  3. Error compiling
    By phat josh in forum Help
    Replies: 5
    Last Post: 05-05-2009, 08:10 PM
  4. Compiling error.
    By Philz in forum Help
    Replies: 0
    Last Post: 03-17-2009, 08:01 AM
  5. Compiling error
    By jul14nch0 in forum Help
    Replies: 4
    Last Post: 01-24-2009, 02:45 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
  •