It's easy and would only take like a minute, come on now
|
Here's my chunk of code:
the error tells me an identifier is expected in this line:Code:private static final START_TIME == System.currentTimeMillis(); public long getHours() { return System.currentTimeMillis() - START_TIME / 1000 / 60 / 60; } public long getMinutes() { return System.currentTimeMillis() - START_TIME / 1000 / 60; } public void uptime() { sendQuest((new StringBuilder()).append("@or1@Status:").toString(), 663); sendQuest((new StringBuilder()).append("@or1@Players Online: @whi@") .append(PlayerHandler.playerCount).toString() + "", 7332); sendQuest((new StringBuilder()).append("@or1@Uptime: @whi@") .append("+getHours()+").append("@whi@H").append("+getMinutes()+").appened("M").toString() + "", 7333); }
rivate static final START_TIME == System.currentTimeMillis();
Code:.\src\Client.java:11: ';' expected private static final long START_TIME == System.currentTimeMillis(); ^ .\src\Client.java:11: <identifier> expected private static final long START_TIME == System.currentTimeMillis(); ^ 2 errors Press any key to continue . . .
Almost there, by the way thanks for the help thus far. I'll make sure your well repped.Code:.\src\Client.java:26: cannot find symbol symbol : method appened(java.lang.String) location: class java.lang.StringBuilder .append("+getHours()+").append("@whi@H").append( "+getMinutes()+").appened("M").toString() ^ 1 error Press any key to continue . . .
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |