did you start the method inside an other?
|
Building with Java JDK 30... - Omar/Flow
src\server\rs2\entity\player\PlayerAssistant.java: 1490: illegal start of express
ion
public void changeLocation() {
^
1 error
Press any key to continue . . .
did you start the method inside an other?
no i diddnt it only happens when i try to add the code so that when admin+ die they dont loose items.
hears the code and hwhen i remove the //'s i get that error above...public void giveLife() {
c.isDead = false;
c.faceUpdate(-1);
//if (c.duelStatus <= 4 && !c.getPA().isOwner() && !c.getPA().isAdmin()) {
if (c.duelStatus <= 4 && !c.getPA().isAdmin()) {
c.freezeTimer = 0;
//if (!c.getPA().isOwner() && !c.getPA().isAdmin() && !c.inFunPk() && !c.inDT()) {
if (!c.getPA().isAdmin() && !c.inFunPk() && !c.inDT()) {
c.getItems().resetKeepItems();
if(!c.newPlayer()) {
if(!c.isSkulled && !BountyHunter.inBH(c)) {
for (int i = 0; i < 3; i++)
c.getItems().keepItem(i, true);
}
why do you want to remove the //?
If you remove the //s, you have to add proper brackets.
try this?Code:public void giveLife() { c.isDead = false; c.faceUpdate(-1); if (c.duelStatus <= 4 && !c.getPA().isOwner() && !c.getPA().isAdmin()) { if (c.duelStatus <= 4 && !c.getPA().isAdmin()) { c.freezeTimer = 0; } } if (!c.getPA().isOwner() && !c.getPA().isAdmin() && !c.inFunPk() && !c.inDT()) { if (!c.getPA().isAdmin() && !c.inFunPk() && !c.inDT()) { c.getItems().resetKeepItems(); } } if(!c.newPlayer()) { if(!c.isSkulled && !BountyHunter.inBH(c)) { for (int i = 0; i < 3; i++) c.getItems().keepItem(i, true); } } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |