Thread: some darn errors cant fix em need some help please ?

Results 1 to 3 of 3
  1. #1 some darn errors cant fix em need some help please ? 
    Banned
    Join Date
    Sep 2007
    Posts
    432
    Thanks given
    4
    Thanks received
    8
    Rep Power
    0
    this are the errors ....


    client.java:238: cannot find symbol
    symbol : variable teleportToX
    location: class client
    teleportToX = loc.getXCoord();
    ^
    client.java:239: cannot find symbol
    symbol : variable teleportToY
    location: class client
    teleportToY = loc.getYCoord();
    ^
    GodWar.java:79: cannot find symbol
    symbol : method resetBar()
    location: class client
    ((client)p).resetBar();
    ^
    GodWar.java:82: cannot find symbol
    symbol : method DeadStats()
    location: class client
    ((client)p).DeadStats();
    ^
    GodWar.java:85: cannot find symbol
    symbol : variable actionTimer
    location: class client
    ((client)p).actionTimer = 0;
    ^
    GodWar.java:166: cannot find symbol
    symbol : variable ancPts
    location: class client
    ((client)p).ancPts += 500;
    ^
    GodWar.java:171: cannot find symbol
    symbol : variable random
    location: class server
    if (server.random.nextInt((int)d
    ropChance) == 0)
    ^
    GodWar.java:173: cannot find symbol
    symbol : variable random
    location: class server
    int index = server.rando
    m.nextInt(rewards.length);
    ^
    GodWar.java:175: cannot find symbol
    symbol : variable random
    location: class server
    ((client)p).addI
    tem(rewards[index], server.random.nextInt(500));

    ^
    GodwarWaitingRoom.java:35: cannot find symbol
    symbol : variable random
    location: class server
    Location newLoc = new Location(Location.GW_WAIT.getXCoor
    d()+server.random.nextInt(5), Location.GW_WAIT.getYCoord()+server.random.nextInt
    (5), Location.GW_WAIT.getHeight());

    ^
    GodwarWaitingRoom.java:35: operator + cannot be applied to int,server.random.nex
    tInt
    Location newLoc = new Location(Location.GW_WAIT.getXCoor
    d()+server.random.nextInt(5), Location.GW_WAIT.getYCoord()+server.random.nextInt
    (5), Location.GW_WAIT.getHeight());

    ^
    GodwarWaitingRoom.java:35: cannot find symbol
    symbol : variable random
    location: class server
    Location newLoc = new Location(Location.GW_WAIT.getXCoor
    d()+server.random.nextInt(5), Location.GW_WAIT.getYCoord()+server.random.nextInt
    (5), Location.GW_WAIT.getHeight());

    ^
    GodwarWaitingRoom.java:35: operator + cannot be applied to int,server.random.nex
    tInt
    Location newLoc = new Location(Location.GW_WAIT.getXCoor
    d()+server.random.nextInt(5), Location.GW_WAIT.getYCoord()+server.random.nextInt
    (5), Location.GW_WAIT.getHeight());

    ^
    GodwarWaitingRoom.java:35: cannot find symbol
    symbol : constructor Location(<nulltype>,<nulltype>,int)
    location: class Location
    Location newLoc = new Location(Location.GW_WAIT.getXCoor
    d()+server.random.nextInt(5), Location.GW_WAIT.getYCoord()+server.random.nextInt
    (5), Location.GW_WAIT.getHeight());
    ^
    misc.java:17: cannot find symbol
    symbol : variable news
    location: class misc
    sM("[NEWS]"+news[newsIndex]);
    ^
    misc.java:17: cannot find symbol
    symbol : method sM(java.lang.String)
    location: class misc
    sM("[NEWS]"+news[newsIndex]);
    ^
    misc.java:19: cannot find symbol
    symbol : variable news
    location: class misc
    if (newsIndex >= news.length)
    ^
    Note: EconomyReset.java uses or overrides a deprecated API.
    Note: Recompile with -Xlinteprecation for details.
    17 errors
    Finished!
    Press any key to continue . . .
    if you CAn help me also add my msn [email protected]
    Reply With Quote  
     

  2. #2  
    Member some darn errors cant fix em need some help please ? Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    The error says it cant find the variable/method it's looking for, so either make it access the class said variable/method is in, or put those in the same class as the code above.

    Attached imageAttached image
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jun 2008
    Age
    27
    Posts
    2,312
    Thanks given
    485
    Thanks received
    231
    Rep Power
    0
    sendMessage

    DELTA:

    toX

    toY

    OTHER:

    teleportToX
    teleportToY

    import java.util.Random;
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •