Thread: One Little Error, it is annoying me :/

Results 1 to 3 of 3
  1. #1 One Little Error, it is annoying me :/ 
    Registered Member TanzanitePS's Avatar
    Join Date
    Jul 2011
    Age
    28
    Posts
    153
    Thanks given
    37
    Thanks received
    8
    Rep Power
    11
    Code:
    src\server\model\players\packets\ClickItem.java:263: reached end of file while parsing
            }→
             ^
    1 error
    Press any key to continue . . .

    I looked in the compiling errors page, and did not see this one, how do i fix it? the code I tried to add was

    Code:
    			if (itemId == 15098) { //Dice Bag ID
    				for (int j = 0; j < Server.playerHandler.players.length; j++) {
    					if (Server.playerHandler.players[j] != null) {
    						Client c2 = (Client)Server.playerHandler.players[j];
    			if (System.currentTimeMillis() - c.diceDelay >= 5000) {
    				c2.sendMessage("" +c.playerName+" has rolled a "+ Misc.random(100) +" with their dice!");
    				c.startAnimation(11900);
    				c.gfx0(2075);
    				}
    			}
    		}
    	}
    This is [PI] 60% Dicing made by Kickyamom


    I added it to the very bottom of the clickitem.java, and that is the only error, any fixes?


    Thanks!
    Reply With Quote  
     

  2. #2  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    You've forgot one bracket at the end.
    Code:
    			if (itemId == 15098) { //Dice Bag ID
    				for (int j = 0; j < Server.playerHandler.players.length; j++) {
    					if (Server.playerHandler.players[j] != null) {
    						Client c2 = (Client)Server.playerHandler.players[j];
    			if (System.currentTimeMillis() - c.diceDelay >= 5000) {
    				c2.sendMessage("" +c.playerName+" has rolled a "+ Misc.random(100) +" with their dice!");
    				c.startAnimation(11900);
    				c.gfx0(2075);
    				}
    			}
    		}
    }
    	} //this bracket ends the file.
    Try that and see if the error will fix.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  3. #3  
    Registered Member TanzanitePS's Avatar
    Join Date
    Jul 2011
    Age
    28
    Posts
    153
    Thanks given
    37
    Thanks received
    8
    Rep Power
    11
    It worked thank you!
    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. Error: T1 - 123,0 - 36,36Very annoying]
    By Zylsium in forum Help
    Replies: 10
    Last Post: 07-25-2011, 03:25 AM
  2. [PI] 1 annoying error, please help.
    By Tando in forum Help
    Replies: 2
    Last Post: 06-24-2011, 04:58 AM
  3. really small error annoying me
    By karl ownz u in forum Help
    Replies: 11
    Last Post: 05-01-2010, 09:59 AM
  4. Extremely annoying error??
    By Fire Cape in forum Help
    Replies: 1
    Last Post: 03-27-2010, 07:54 PM
  5. very annoying error
    By Leanbow in forum Help
    Replies: 15
    Last Post: 11-10-2009, 08:23 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •