Thread: Coding problem! Pelase solve

Results 1 to 2 of 2
  1. #1 Coding problem! Pelase solve 
    Registered Member
    Join Date
    Jun 2015
    Posts
    32
    Thanks given
    4
    Thanks received
    0
    Rep Power
    11
    Code:
    if(player.isIronman) {
    				player.getPackets().sendGameMessage("You cannot trade players on the ironman challenge!");
    				return;
    			}
    			if(other.isIronman) {
    				player.getPackets().sendGameMessage("This player is on the ironman challenge and cannot trade.");
    				return;
    			}
    for some reason it will not accept "IF(other.isIronman)"
    it tells me " Multiple markers at this line
    - other cannot be resolved to a variable
    - other cannot be resolved to a variable
    - Line breakpoint:WorldPacketsDecoder [line: 923] - processPackets(int,
    InputStream, int)
    - Line breakpoint:WorldPacketsDecoder [line: 922] - processPackets(int,
    InputStream, int)"

    help me over skype to get my teamviewer and help me figure this problem out? im pretty new at this coding stuff, and really need you guys help. skype = sammy.Dennis15
    thanks.
    Reply With Quote  
     

  2. #2  
    Super Donator

    StanDev's Avatar
    Join Date
    Apr 2014
    Posts
    660
    Thanks given
    82
    Thanks received
    255
    Rep Power
    592
    well player is an instance from the Player class, other should be as well. You could for example look in your command class and look at your teleto command.
    You should have somemthing like this:
    Code:
    			String playerToTele = wholeCommand.substring(7);
    			Player player2 = World.getPlayerByName(playerToTele);
    Now with this I am sure you'll figure out how to do it.
    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. [Paying][562]Coding Problems![562][Paying]
    By iEmily52 in forum Help
    Replies: 7
    Last Post: 01-14-2013, 12:31 AM
  2. private server problems, pelase help!
    By bbackz100 in forum Help
    Replies: 12
    Last Post: 01-21-2012, 10:42 PM
  3. Replies: 14
    Last Post: 07-19-2010, 12:44 AM
  4. Small java code problem
    By Decs in forum Help
    Replies: 1
    Last Post: 05-16-2010, 08:38 PM
  5. [Help] Small Coding Problem [Help]
    By Ragez Fury in forum Help
    Replies: 0
    Last Post: 08-18-2009, 04:15 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
  •