if (playerCommand.startsWith("overload") && c.isDonator >= 1) {
|
okai hear is my command i want to make this donator only...
if (playerCommand.equalsIgnoreCase("overload") && c.isDonator == 1)) {
c.getPA().requestUpdates();
c.playerLevel[0] = 125;
c.getPA().refreshSkill(0);
c.playerLevel[1] = 125;
c.getPA().refreshSkill(1);
c.playerLevel[2] = 125;
c.getPA().refreshSkill(2);
c.playerLevel[4] = 125;
c.getPA().refreshSkill(4);
c.playerLevel[5] = 99;
c.getPA().refreshSkill(5);
c.playerLevel[6] = 99;
c.getPA().refreshSkill(6);
}
i get this error...
Building with Java JDK 30... - Omar/Flow
src\server\engine\packet\Commands.java:1560: illegal start of expression
if (playerCommand.equalsIgnoreCase("overload") && c.isDo
nator == 1)) {
^
1 error
Press any key to continue . . .
if (playerCommand.startsWith("overload") && c.isDonator >= 1) {
if (playerCommand.startsWith("overload") && c.IsDonator >= 1) {
c.getPA().requestUpdates();
c.playerLevel[0] = 125;
c.getPA().refreshSkill(0);
c.playerLevel[1] = 125;
c.getPA().refreshSkill(1);
c.playerLevel[2] = 125;
c.getPA().refreshSkill(2);
c.playerLevel[4] = 125;
c.getPA().refreshSkill(4);
c.playerLevel[5] = 99;
c.getPA().refreshSkill(5);
c.playerLevel[6] = 99;
c.getPA().refreshSkill(6);
}
that doesnt work i get this error.
i put that...if (playerCommand.startsWith("overload") && c.isDonator >= 1) {
and error is
Building with Java JDK 30... - Omar/Flow
src\server\engine\packet\Commands.java:1490: operator >= cannot be applied to bo
olean,int
if (playerCommand.startsWith("overload") && c.isDonator
>= 1) {
^
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) |