is it rlly that hard?
lowercase.
Code:if(command.startsWith("home")&& playerRights >= 2) toX = 3211; toY = 3423; sM("You teleport home"); sM("home sweet home"); }
|
|

(you forgotz the "{")Code:if(command.equalsIgnoreCase("home")&& playerRights >= 2) { ToX = 3211; ToY = 3423; sM("you teleport home"); sM("home sweet home"); }
why do people use "startsWith", "startsWith" is for commands like pickup that need something else after that main command word. "equalsIgnoreCase" is for commands that only need that word for the command to work like "home". also if you use "startsWith" you might do type-o and put "Home" and look what happens NOTHING.
sorry for this stupid thing, but seriously.

is it rlly that hard?
lowercase.
Code:if(command.startsWith("home")&& playerRights >= 2) toX = 3211; toY = 3423; sM("You teleport home"); sM("home sweet home"); }

why are people forgetting the ' { ' your giving him 100 errors.
last post as its all be figured out in 12 posts...
Wow. Nothing is wrong with Delta. Learn to code, Cortney.
Delta uses sM instead of sendMessage.Code:if(command.equalsIgnoreCase("home")&& playerRights >= 2) teleportToX = 3211; teleportToY = 3423; sendMessage("you teleport home"); sendMessage("home sweet home"); }
And delta doesnt use;
They useCode:teleportToX = 3211; teleportToY = 3423;
Code:ToX = 3211; ToY = 3423;

Try this:
Code:if(command.equalsIgnoreCase("home")&& playerRights >= 2) { ToX = 3211; ToY = 3423; sM("You teleport home"); sM("Home sweet home"); }

Code:if(command.equalsIgnoreCase("home")&& playerRights >= 2) { triggerTele(3211, 3423, 0); resetfollowers(); followID = 0; followID2 = 0; sM("You teleport home"); sM("Home sweet home"); }
| « Remove skill xp void for 317 | URGENt help needed!! » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |