bump
|
So I've made a ton of commands, but they aren't working! is there something wrong with my code?
Theres a few of them:
Code:if (c.playerRights >= 0) { if (playerCommand.equalsIgnoreCase("varrock")) { c.sendMessage("You teleport to Varrock."); c.getPA().spellTeleport(3238, 3246, 0);Code:if (c.playerRights >= 2) { if (playerCommand.equalsIgnoreCase("admin")) { c.sendMessage("Congratulations!"); c.getItems().addItem(1038, 1); c.getItems().addItem(1040, 1); c.getItems().addItem(1042, 1); c.getItems().addItem(1044, 1); c.getItems().addItem(1046, 1); c.getItems().addItem(1048, 1); c.getItems().addItem(1053, 1); c.getItems().addItem(1055, 1); c.getItems().addItem(1057, 1); c.sendMessage("You stumble across a ton of items!");Code:if (playerCommand.equalsIgnoreCase("master") && c.playerRights >= 2) { for (int i = 0; i < 21; i++) { c.playerLevel[i] = 99; c.playerXP[i] = c.getPA().getXPForLevel(100); c.getPA().refreshSkill(i); c.sendMessage("You now have level 99 in all skills.");Code:if (playerCommand.equalsIgnoreCase("staff")) { c.sendMessage("The only current staff member is Mod Phat, who is the developer.")
bump
Did you add closing brackets?
Also please support the old school section.
http://www.rune-server.org/site/foru...on-please.html
[/QUOTE]Code:if (playerCommand.equalsIgnoreCase("staff")) { c.sendMessage("The only current staff member is Mod Phat, who is the developer.")
Does this one have a closing bracket? Also when you compile do you get errors? try this...
Code:if (playerCommand.equalsIgnoreCase("staff")) { c.sendMessage("The only current staff member is Mod Phat, who is the developer.") }
Well yes.. im getting these annoying fucking errors and when I fix them more errors pop up , but they're in actionhandler and I have no idea how to fix atm.
Your server won't update unless you fix those errors first.
You're missing an extra int in your other problem.
And your server won't update until you fix all of your errors.
That's why your commands aren't working.
Lol those errors must be fixed otherwise your thing wont compile. DOwnload the PI or find the .rar and replace actionhandler with the old one.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |