Post the methods.
|
Description Resource Path Location Type
The method getPA() is undefined for the type Player FightPits.java /Project Insanity 602 data source/src/server/model/minigames line 82 Java Problem
getActionSender doesn't work either
and:
Description Resource Path Location Type
The method add(int, int) is undefined for the type Object FightPits.java /Project Insanity 602 data source/src/server/model/minigames line 117 Java Problem
Can someone help pleas?
Post the methods.
private static void enterGame(Player c) {
playerMap.put(c, PLAYING);
int teleportToX = MINIGAME_START_POINT_X + Misc.random(12);
int teleportToY = MINIGAME_START_POINT_Y + Misc.random(12);
c.getPA().movePlayer(teleportToX, teleportToY, 0);
c.getPA().showOption(3, "Attack");
c.getPA().showOption(2, "null");
}
if (state.equals(PLAYING)) {
if (getListCount(PLAYING) - 1 == 0 && !forceRemove) {
pitsChampion = c.playerName;
c.headIcon = 21;
c.updateRequired = true;
c.getInventory()).add(TOKKUL_ID, 1500+Misc.random(500));
Check:
1) If those methods actually exist in the client class.
2) If you've imported the client class.
3) If "c" is the abbreviation of client.
bump
I'm not sure but shouldn't
beCode:private static void enterGame(Player c) {
Code:private static void enterGame(Client c) {
And you'll have to change the hashmap from
toCode:<Player, Boolean>
Code:<Client, Boolean>
bump
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |