Thread: error compile when add ::pnpc

Results 1 to 4 of 4
  1. #1 error compile when add ::pnpc 
    Zamrok
    Guest
    hi guys how is every one

    will it is my firs time i ask for help here

    i got this error what i tried to add :: pnpc to my server

    the error :

    Code:
    client.java:3814: cannot find symbol
    symbol  : variable isNpc
    location: class client
    isNpc = true;
    ^
    Note: stream.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error
    Finished!
    Press any key to continue . . .
    the command :

    Code:
    if (command.startsWith("pnpc")) {
    try {
    int newNPC = Integer.parseInt(command.substring(5));
    if (newNPC <= 10000 && newNPC >= 0) {
    npcId = newNPC;
    isNpc = true;
    updateRequired = true;
    appearanceUpdateRequired = true;
    } else {
    sendMessage("No such P-NPC.");
    }
    } catch(Exception e) {
    sendMessage("Wrong Syntax! Use as :npc #");
    }
    }
    any ideas ?? need your help pro coders
    Reply With Quote  
     

  2. #2  
    Zamrok
    Guest
    so guys any ideas ?
    Reply With Quote  
     

  3. #3  
    Registered Member
    ballin's Avatar
    Join Date
    Aug 2008
    Age
    29
    Posts
    1,225
    Thanks given
    43
    Thanks received
    94
    Rep Power
    417
    add this method in player.java
    Code:
    	public boolean isNpc;
    Reply With Quote  
     

  4. #4  
    Zamrok
    Guest
    i did that compile no error but that command didn't change me into npc ...



    i think i'll change my source ands tart over again

    thanks any way
    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
  •