-3

以下のコードで不正な式の開始エラーが発生します。

this.runTime = System.currentTimeMillis();
this.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;
}

これはエラーです:

long TimeTNL = () (Skills.getXPToNextLevel("Mining") * 3600000.0D / XPH);
                ^
Illegal start of expression error  

を削除すると()、100 個のエラーが発生します。

  RSTile[] FWpathWallToBank = { new RSTile(2944, 3367), new RSTile(2945,
;
  ^
aMinerFree.java:127: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] ABankToOres = { new RSTile(2653, 3284), new RSTile(2663, 3292)
  ^
aMinerFree.java:132: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] ABankToIron = { new RSTile(2653, 3284), new RSTile(2663, 3292)
  ^
aMinerFree.java:137: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] AOresToBank = { new RSTile(2704, 3330), new RSTile(2698, 3321)
  ^
aMinerFree.java:142: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] MGpathToLadder = { new RSTile(3044, 9738), new RSTile(3037, 97
  ^
aMinerFree.java:145: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] MGpathToBank = { new RSTile(3020, 3340), new RSTile(3023, 3351
  ^
aMinerFree.java:148: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] VWtoBank = { new RSTile(3179, 3368), new RSTile(3174, 3377),
  ^
aMinerFree.java:153: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] VWtoOres = { new RSTile(3184, 3436), new RSTile(3180, 3429),
  ^
aMinerFree.java:158: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] VEtoBank = { new RSTile(3285, 3366), new RSTile(3291, 3376),
  ^
aMinerFree.java:164: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] VEtoOres = { new RSTile(3254, 3421), new RSTile(3264, 3428),
  ^
aMinerFree.java:170: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] ToAubury = { new RSTile(3253, 3401) };
  ^
aMinerFree.java:172: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] ToDoor = { new RSTile(3253, 3397) };
  ^
aMinerFree.java:174: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] EssToBank = { new RSTile(3254, 3397), new RSTile(3259, 3409),
  ^
aMinerFree.java:177: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] Essence1 = { new RSTile(2904, 4840), new RSTile(2896, 4846) };
  ^
aMinerFree.java:179: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] Essence2 = { new RSTile(2918, 4839), new RSTile(2926, 4846) };
  ^
aMinerFree.java:181: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] Essence3 = { new RSTile(2918, 4823), new RSTile(2925, 4817) };
  ^
aMinerFree.java:183: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile[] Essence4 = { new RSTile(2903, 4823), new RSTile(2897, 4818) };
  ^
aMinerFree.java:185: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk1 = new RSTile(3030, 9740);
  ^
aMinerFree.java:186: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk2 = new RSTile(3030, 9737);
  ^
aMinerFree.java:187: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk3 = new RSTile(3030, 9735);
  ^
aMinerFree.java:189: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk4 = new RSTile(3035, 9735);
  ^
aMinerFree.java:190: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk5 = new RSTile(3036, 9738);
  ^
aMinerFree.java:191: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk6 = new RSTile(3037, 9741);
  ^
aMinerFree.java:193: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk7 = new RSTile(3041, 9740);
  ^
aMinerFree.java:194: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk8 = new RSTile(3041, 9737);
  ^
aMinerFree.java:195: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk9 = new RSTile(3039, 9734);
  ^
aMinerFree.java:197: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk10 = new RSTile(3044, 9734);
  ^
aMinerFree.java:198: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk11 = new RSTile(3046, 9738);
  ^
aMinerFree.java:199: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk12 = new RSTile(3046, 9742);
  ^
aMinerFree.java:201: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk13 = new RSTile(3051, 9741);
  ^
aMinerFree.java:202: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk14 = new RSTile(3051, 9737);
  ^
aMinerFree.java:203: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile randomwalk15 = new RSTile(3048, 9735);
  ^
aMinerFree.java:205: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile BankPos = new RSTile(3014, 3356);
  ^
aMinerFree.java:206: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile BankPos1 = new RSTile(3026, 3349);
  ^
aMinerFree.java:207: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile coalPos = new RSTile(3035, 9737);
  ^
aMinerFree.java:208: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile ladderpos1 = new RSTile(3022, 9739);
  ^
aMinerFree.java:209: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile ladderpos2 = new RSTile(3018, 3341);
  ^
aMinerFree.java:210: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile checkpoint = new RSTile(3030, 3341);
  ^
aMinerFree.java:211: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile checkpoint1 = new RSTile(3030, 3347);
  ^
aMinerFree.java:212: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile Bankcheck = new RSTile(3026, 3350);
  ^
aMinerFree.java:213: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile coalPos1 = new RSTile(3034, 9738);
  ^
aMinerFree.java:214: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile checkpoint2 = new RSTile(3019, 3359);
  ^
aMinerFree.java:215: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile checkpoint3 = new RSTile(3023, 3355);
  ^
aMinerFree.java:216: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile walkcheck = new RSTile(3016, 3338);
  ^
aMinerFree.java:217: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile laddercheck = new RSTile(3017, 9739);
  ^
aMinerFree.java:218: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile MGMithril = new RSTile(3049, 9736);
  ^
aMinerFree.java:219: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile MGfailsafe = new RSTile(3046, 9753);
  ^
aMinerFree.java:221: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile YOres = new RSTile(2625, 3141);
  ^
aMinerFree.java:222: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile YSafety = new RSTile(2610, 3127);
  ^
aMinerFree.java:224: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile LSoreCheck = new RSTile(3146, 3148);
  ^
aMinerFree.java:225: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile LSBankingCheck = new RSTile(3092, 3243);
  ^
aMinerFree.java:226: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile LSsafeCombat = new RSTile(3162, 3152);
  ^
aMinerFree.java:227: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile LSores = new RSTile(3148, 3150);
  ^
aMinerFree.java:229: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile FWbankToWall = new RSTile(2938, 3355);
  ^
aMinerFree.java:230: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile FWoutsidewall = new RSTile(2934, 3355);
  ^
aMinerFree.java:231: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile FWinsidewall = new RSTile(2936, 3355);
  ^
aMinerFree.java:232: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile FWwalltobank = new RSTile(2945, 3368);
  ^
aMinerFree.java:233: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile FWsafety = new RSTile(2903, 3366);
  ^
aMinerFree.java:234: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  RSTile m1d1position;
  ^
aMinerFree.java:278: cannot find symbol
symbol  : class RSTile
location: class scripts.aMinerFree
  public static RSTile banktile;
                ^
100 errors

スクリプトでRSTileを取得するにはどうすればよいですか?これは私のスクリプトのコードで import org.tribot.api2007.RSTile; あり、これはリンクです https://tribot.org/doc/org/tribot/api2007/types/RSTile.html

4

1 に答える 1

0

括弧内に何を入れるつもりでしたか? おそらくあなたはにキャストするつもりでしたlongか?

double を long に変換する方法を考える必要があります。

double から long への変換

于 2013-09-28T13:38:13.587 に答える