Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 24th, 2011, 12:55 PM
S3R0 S3R0 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 1 S3R0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 31 sec
Reputation Power: 0
Question Compiling error - Runescape Private Server [317]

Hey guys,

I'm in a pickle here.. This uses Java. Although I've been messing around with it for about an hour or two trying to figure out how to fix this..

Here's the error code on command prompt (code may be a little messed up) :
Code:
client.java:20757: ')' expected
} else if(playerHasItemAmount <= (1734, 5) && playerHasItemAmount <= (1741, 5))
{
                                      ^
client.java:20757: not a statement
} else if(playerHasItemAmount <= (1734, 5) && playerHasItemAmount <= (1741, 5))
{
                                        ^
client.java:20757: ';' expected
} else if(playerHasItemAmount <= (1734, 5) && playerHasItemAmount <= (1741, 5))
{
                                         ^
client.java:20757: ')' expected
} else if(playerHasItemAmount <= (1734, 5) && playerHasItemAmount <= (1741, 5))
{
                                                                          ^
client.java:20757: not a statement
} else if(playerHasItemAmount <= (1734, 5) && playerHasItemAmount <= (1741, 5))
{
                                                                  ^
client.java:20757: not a statement
} else if(playerHasItemAmount <= (1734, 5) && playerHasItemAmount <= (1741, 5))
{
                                                                            ^
client.java:20757: ';' expected
} else if(playerHasItemAmount <= (1734, 5) && playerHasItemAmount <= (1741, 5))
{
                                                                             ^
client.java:20760: 'else' without 'if'
} else {
  ^
8 errors
You have sucsessfully compiled
Press any key to continue . . .


Here is the full code that had the errors:
Code:
case 33189:
if(playerHasItemAmount(1734, 5) && playerHasItemAmount(1741, 5) && playerLevel[12] >= 0) {
RemoveAllWindows();
deleteItem(1734, getItemSlot(1734), 5);
deleteItem(1741, getItemSlot(1741), 5);
addItem(1059, 5);
addSkillXP(135, 12);
sendMessage("You craft 5 leather gloves.");
} else if(playerHasItemAmount <= (1734, 5) && playerHasItemAmount <= (1741, 5)) {
RemoveAllWindows();
sendMessage("You need at least 5 pieces of leather and thread to craft these.");
} else {
RemoveAllWindows();
sendMessage("You don't have any leather and/or thread.");
}
break;


Can someone please help me? I try and figure stuff out on my own, but this is stumping me.. I've tried getting help from 2 different people, and they couldn't figure this out.. =/

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesGame Development > Compiling error - Runescape Private Server [317]

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap