Thread: Galkons Ref error... item loading >.>

Results 1 to 8 of 8
  1. #1 Galkons Ref error... item loading >.> 
    TzTok

    Join Date
    Apr 2008
    Age
    30
    Posts
    1,870
    Thanks given
    20
    Thanks received
    21
    Rep Power
    432
    Code:
    .\ItemDef.java:228: non-static method actionData(int,java.lang.String) cannot be
     referenced from a static context
                            actionData(5, "Wield");
                            ^
    .\ItemDef.java:229: non-static method itemData(java.lang.String,java.lang.String
    ) cannot be referenced from a static context
                            itemData("Statius's Warhammer", "It's a Statius's Warham
    mer.");
                            ^
    .\ItemDef.java:230: non-static method models(int,int,int,int,int) cannot be refe
    renced from a static context
                            models(42577, 42623, 42623, -1, -1);
                            ^
    .\ItemDef.java:231: non-static method modelData(int,int,int,int,int) cannot be r
    eferenced from a static context
                            modelData(1360, 507, 27, 6, 7);
                            ^
    4 errors
    Jatka painamalla mitä tahansa näppäintä . . .




    yet I've got another problem.. for some reason... female models wont load.
    Reply With Quote  
     

  2. #2  
    Member

    Join Date
    Nov 2008
    Age
    24
    Posts
    4,861
    Thanks given
    774
    Thanks received
    341
    Rep Power
    0
    i dont think the ints are like that

    i think the ints are normal with the class8. take out and sted of if(i = *****) its case *****;
    Reply With Quote  
     

  3. #3  
    TzTok

    Join Date
    Apr 2008
    Age
    30
    Posts
    1,870
    Thanks given
    20
    Thanks received
    21
    Rep Power
    432
    its not case.

    I'm using the old style.

    also, Galkon posted a tut with this format in it before.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2009
    Posts
    295
    Thanks given
    3
    Thanks received
    2
    Rep Power
    40
    alright, it's saying you're not calling the method correctly. You have to call it like so.
    Code:
    		case 13902:
    			itemDef.actionData(1, "Wield");
    			itemDef.itemData("Statius's Warhammer", "Statius's Warhammer, a reward from PVP.");
    			itemDef.models(42577, 42623, 42623, -1, -1);
    			itemDef.modelData(1360, 507, 27, 6, 7);
    			break;
    There ya go
    Reply With Quote  
     

  5. #5  
    Member Market Banned Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    28
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    Quote Originally Posted by waffl3z0wnu View Post
    alright, it's saying you're not calling the method correctly. You have to call it like so.
    Code:
    		case 13902:
    			itemDef.actionData(1, "Wield");
    			itemDef.itemData("Statius's Warhammer", "Statius's Warhammer, a reward from PVP.");
    			itemDef.models(42577, 42623, 42623, -1, -1);
    			itemDef.modelData(1360, 507, 27, 6, 7);
    			break;
    There ya go
    wrong... its saying that what you are trying to call is not static. but your calling it in a static way...

    do sommet like

    itemDef ID = new itemDef();
    ID.modelData...blablabla ...

    hope i helped.
    ILY Stewie.
    Reply With Quote  
     

  6. #6  
    Retired. Stop PMing me.

    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    14
    Posts
    7,528
    Thanks given
    1,783
    Thanks received
    2,822
    Discord
    View profile
    Rep Power
    5000
    Wow guys...

    Rixi, put "itemDef." in front of all of them.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #7  
    TzTok

    Join Date
    Apr 2008
    Age
    30
    Posts
    1,870
    Thanks given
    20
    Thanks received
    21
    Rep Power
    432
    ahh, Galkon sorry for that >.> I didn't realise i'd have to call it from the class I'm using at the moment lawl. sorry.
    Reply With Quote  
     

  8. #8  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    16
    Posts
    4,364
    Thanks given
    1,027
    Thanks received
    703
    Discord
    View profile
    Rep Power
    2991
    Wow fail. Read the error.
    [Only registered and activated users can see links. ]
    Quote Originally Posted by UberNation View Post
    Did you update the quantum network sockets to match the polarity of the wilderness counter levels in the Boolean that divides the wilderness level by zero?
    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
  •