Thread: [delta] command issue / question

Results 1 to 4 of 4
  1. #1 [delta] command issue / question 
    Member
    Join Date
    Apr 2011
    Age
    29
    Posts
    226
    Thanks given
    198
    Thanks received
    8
    Rep Power
    0
    Code:
    if(CheckVotes(playerName)) {
                                    getItems().PkPoints += 500;
                                    sM("Thanks for voting! @red@VOTE EVERY 24 HOURS PLEASE!");
                            }
    Would this give 500 pk points?

    [also got an error]
    Code:
    Compiling...
    .\client.java:14796: cannot find symbol
    symbol  : method getItems()
    location: class client
                                    getItems().PkPoints += 500;
                                    ^
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jun 2010
    Age
    29
    Posts
    891
    Thanks given
    22
    Thanks received
    47
    Rep Power
    0
    shouldn't this
    getItems().PkPoints += 500;
    be
    PkPoints += 500;
    idk delta just trying
    hi
    Reply With Quote  
     

  3. #3  
    Registered Member
    Smokey's Avatar
    Join Date
    Apr 2011
    Posts
    287
    Thanks given
    124
    Thanks received
    73
    Rep Power
    351
    Quote Originally Posted by Syndicate View Post
    shouldn't this
    getItems().PkPoints += 500;
    be
    PkPoints += 500;
    idk delta just trying
    I believe so.. You don't have an getItems method, most likely returning the Items class. You need to either create that, or make it static access.

    Then again pk points shouldn't have anything to do with items... You should add

    Code:
    public int pkPoints = 0;
    Somewhere in the Player class.

    Assuming the client class is extending the player class.

    And go to the
    Code:
    getItems().PkPoints += 500;
    to
    Code:
    pkPoints += 500;
    Problem solved rep pls
    Spoiler for signature:

    He is richest who is content with the least, for contentment is the wealth of nature. - Socrates
    Attached image
    Reply With Quote  
     

  4. #4  
    Member
    Join Date
    Apr 2011
    Age
    29
    Posts
    226
    Thanks given
    198
    Thanks received
    8
    Rep Power
    0
    Quote Originally Posted by Syndicate View Post
    shouldn't this
    getItems().PkPoints += 500;
    be
    PkPoints += 500;
    idk delta just trying
    tried already
    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. [Project Insanity] Command Issue - TeleToMe
    By Haskell Curry in forum Help
    Replies: 7
    Last Post: 05-14-2011, 06:43 PM
  2. [Project Insanity] Command Issue - Yell
    By Haskell Curry in forum Help
    Replies: 6
    Last Post: 05-10-2011, 01:53 AM
  3. ::setlevel command issue!
    By Amir-Habeeb in forum Help
    Replies: 8
    Last Post: 04-28-2011, 02:25 PM
  4. Delta Issue lol...
    By Solstice12 in forum Help
    Replies: 2
    Last Post: 09-07-2010, 12:00 AM
  5. ::coords Command issue?
    By Noosy in forum Help
    Replies: 1
    Last Post: 09-12-2009, 02:00 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
  •