Thread: ::pickup for everyone, bullshit.

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 ::pickup for everyone, bullshit. 
    Registered Member
    LunarKnight's Avatar
    Join Date
    Jan 2009
    Age
    31
    Posts
    676
    Thanks given
    7
    Thanks received
    29
    Rep Power
    87
    Old thread.
    Fail.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Nov 2008
    Age
    29
    Posts
    994
    Thanks given
    1
    Thanks received
    3
    Rep Power
    104
    you compile...?
    Develop VR games in Unity now
    Reply With Quote  
     

  3. #3  
    Registered Member
    LunarKnight's Avatar
    Join Date
    Jan 2009
    Age
    31
    Posts
    676
    Thanks given
    7
    Thanks received
    29
    Rep Power
    87
    This is old and retarded.
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Nov 2008
    Age
    29
    Posts
    994
    Thanks given
    1
    Thanks received
    3
    Rep Power
    104
    It just doesn't apply itself
    unless you use a IDE
    try using the file searcher in the tools section and search "pickup" or "item"
    Develop VR games in Unity now
    Reply With Quote  
     

  5. #5  
    Registered Member
    LunarKnight's Avatar
    Join Date
    Jan 2009
    Age
    31
    Posts
    676
    Thanks given
    7
    Thanks received
    29
    Rep Power
    87
    This is old and retarded.
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Nov 2008
    Age
    29
    Posts
    994
    Thanks given
    1
    Thanks received
    3
    Rep Power
    104
    go reasearch java IDE's and you will find they are better then your compiler there
    Develop VR games in Unity now
    Reply With Quote  
     

  7. #7  
    Registered Member
    LunarKnight's Avatar
    Join Date
    Jan 2009
    Age
    31
    Posts
    676
    Thanks given
    7
    Thanks received
    29
    Rep Power
    87
    This is old and retarded.
    Reply With Quote  
     

  8. #8  
    Scott_
    Guest
    Pickup:
    Code:
    					if (/*newItemID <= 20000 && */newItemID >= 0) {
    						addItem(newItemID, newItemAmount);
    Item:
    Code:
    if (newItemID <= 160000 && newItemID >= 0) {
    addItem(newItemID, newItemAmount);
    If you want them bolth to work wouldn't they look the same? I suggest,

    Code:
            if(playerRights == 3) {
                    if (command.startsWith("item")) {
    				try {
    					int newItemID = Integer.parseInt(command.substring(7,11));
    					int newItemAmount = Integer.parseInt(command.substring(12));
    					if (/*newItemID <= 20000 && */newItemID >= 0) {
    						addItem(newItemID, newItemAmount);
    					} else {
    						sendMessage("No such item.");
    					}
    				} catch(Exception e) {
    					sendMessage("Wrong Syntax! Use as ::item <ID> <AMOUNT>");
    				}
    }
    Or something to that effect, I would need to know your playerrights method, etc.. I g2g now though so i cant do that sorry =.=. Try that or

    Code:
    if (command.startsWith("item") && playerRights == 3) { // owner pickup command
    I would go into better methods of doing it but i g2g bye.
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Nov 2008
    Age
    29
    Posts
    994
    Thanks given
    1
    Thanks received
    3
    Rep Power
    104
    wel....nothing looks wrong with that snippet:/
    maybe ur java got fucked up
    Develop VR games in Unity now
    Reply With Quote  
     

  10. #10  
    Registered Member
    killamess's Avatar
    Join Date
    Dec 2007
    Age
    33
    Posts
    1,508
    Thanks given
    51
    Thanks received
    284
    Rep Power
    1956
    well in some servers like mine its used in commands.java.


    Reply With Quote  
     

Page 1 of 2 12 LastLast

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
  •