read pl0xfound : int
required: boolean
|
ok i did this small litle tut..
after doing it i get this error:
Code:.\net\com\codeusa\io\FileManager.java:222: incompatible types found : int required: boolean p.jailed = Integer.parseInt(line.substring(9)); ^ Note: .\net\com\codeusa\clanchat\Room.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Press any key to continue . . .
this is how the code looks like:
i will defently rep+ even if you have any seggestion.Code:} else if (line.startsWith("absx:")) p.teleportToX = Integer.parseInt(line.substring(5)); else if (line.startsWith("absy:")) p.teleportToY = Integer.parseInt(line.substring(5)); else if (line.startsWith("height:")) p.heightLevel = 0; //Any height level different than 0 crashes the client upon login else if (line.startsWith("runenergy:")) p.runEnergy = Integer.parseInt(line.substring(10)); else if (line.startsWith("jailed:")) p.jailed = Integer.parseInt(line.substring(9)); else if (line.startsWith("gender:")) p.gender = Integer.parseInt(line.substring(7));
read pl0xfound : int
required: boolean
but i did already declare this in player.java
what do i have to do to overcome that problem.Code:public boolean jailed = false;
nop, it still wont work.
u need other codes to safe boolen can't remember
Replace your 'jailed' boolean in player class and use int
Code:public int jailed = 0;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |