0

有人可以帮我解决这个错误吗?
当我删除 () 我有 100 个错误...
无法在我自己的帖子上回复需要等待 7 小时...

我仍然遇到错误,有人可以通过teamviewuwer帮助我吗?

long TimeTNL = ()(Skills.getXPToNextLevel("Mining") * 3600000.0D / XPH);
                ^

1 个错误


this.runTime = System.currentTimeMillis();
timeRan = this.runTime - this.startTime;
int XPH = (int)(this.gainedXP * 3600000.0D / timeRan);
long TimeTNL = ()(Skills.getXPToNextLevel("Mining") * 3600000.0D / XPH);
if (XPH > 0) {
  this.TNLhours = (TimeTNL / 3600000L);
  TimeTNL -= this.TNLhours * 3600000L;
  this.TNLminutes = (TimeTNL / 60000L);
  TimeTNL -= this.TNLminutes * 60000L;
  this.TNLseconds = (TimeTNL / 1000L);
  TimeTNL -= this.TNLseconds * 1000L;
}
4

2 回答 2

3

这不是 Javascript,这是 Java!Java 到 Javascript 就像高脚椅到电椅!

只需删除()- 为什么那些在那里?:)

于 2013-09-27T19:29:35.110 回答
1

去掉()变量声明后的赋值运算符,它们(括号)是不必要的。

于 2013-09-27T19:29:30.030 回答