give me the whole class
and
doesn't make sense lolserver.zammyscore();
this does:
public static int score = server.zammyscore();
|
How exactly would I fix that?Code:.\Castlewars.java:2: ';' expected public static int server.cwarszammymax(); ^ .\Castlewars.java:2: invalid method declaration; return type required public static int server.cwarszammymax(); ^ .\Castlewars.java:3: ';' expected public static int server.cwarssaramax(); ^ .\Castlewars.java:3: invalid method declaration; return type required public static int server.cwarssaramax(); ^ .\Castlewars.java:4: ';' expected public static int server.cwarsguthixmax(); ^ .\Castlewars.java:4: invalid method declaration; return type required public static int server.cwarsguthixmax(); ^ .\Castlewars.java:5: ';' expected public static int server.zammyscore(); ^ .\Castlewars.java:5: invalid method declaration; return type required public static int server.zammyscore(); ^ .\Castlewars.java:6: ';' expected public static int server.sarascore(); ^ .\Castlewars.java:6: invalid method declaration; return type required public static int server.sarascore(); ^ .\Castlewars.java:7: ';' expected public static int server.guthixscore(); ^ .\Castlewars.java:7: invalid method declaration; return type required public static int server.guthixscore(); ^ 12 errors Press any key to continue . . .
give me the whole class
and
doesn't make sense lolserver.zammyscore();
this does:
public static int score = server.zammyscore();
Code:public class Castlewars { public static int server.cwarszammymax(); public static int server.cwarssaramax(); public static int server.cwarsguthixmax(); public static int server.zammyscore(); public static int server.sarascore(); public static int server.guthixscore(); public static int waitTime = -1; public static int gameTime = -1; public int Time = 1200; //120 = 1 minute public int Time2 = 1320; // 11 minutes return; public void process() { if(gameTime >= 0) { gameTime -= 1; } if(waitTime >= 0) { waitTime -= 1; } if(waitTime == -1) { sarascore = 0; //resets scores zammyscore = 0; guthixscore = 0; cwarssaramax = 0;//resets max players to 0. cwarszammymax = 0; cwarsguthixmax = 0; gameTime = Time; //starts the game (10 minutes) waitTime = Time2; Yell("[NOTICE]A xxxx game has started."); } if(gameTime == 0) { Yell("[NOTICE]A xxxx game has ended."); } } }
???public static int server.cwarszammymax();
public static int server.cwarssaramax();
public static int server.cwarsguthixmax();
public static int server.zammyscore();
public static int server.sarascore();
public static int server.guthixscore();
use this:
public static int scoreOfGod = server.godScore();
Actually, I just used the one in the tutorial. But I got this:
Because I used this:Code:.\Client.java:4827: cannot find symbol symbol : variable server location: class Client else if (server.cwarssaramax > server.cwarszammymax) ^ .\Client.java:4827: cannot find symbol symbol : variable server location: class Client else if (server.cwarssaramax > server.cwarszammymax) ^ .\Client.java:4839: cannot find symbol symbol : variable Sara location: class Client Sara = true; ^ .\Client.java:4840: cannot find symbol symbol : variable server location: class Client server.cwarssaramax += 1; ^ .\Castlewars.java:2: cannot find symbol symbol : variable server location: class Castlewars int sarascore = server.sarascore; ^ .\Castlewars.java:3: cannot find symbol symbol : variable server location: class Castlewars int zammyscore = server.zammyscore; ^ .\Castlewars.java:4: cannot find symbol symbol : variable server location: class Castlewars int guthixscore = server.guthixscore; ^ .\Castlewars.java:5: cannot find symbol symbol : variable server location: class Castlewars int cwarssaramax = server.cwarssaramax; ^ .\Castlewars.java:6: cannot find symbol symbol : variable server location: class Castlewars int cwarszammymax = server.cwarszammymax; ^ .\Castlewars.java:7: cannot find symbol symbol : variable server location: class Castlewars int cwarsguthixmax = server.cwarsguthixmax; ^
Code:int sarascore = server.sarascore; int zammyscore = server.zammyscore; int guthixscore = server.guthixscore; int cwarssaramax = server.cwarssaramax; int cwarszammymax = server.cwarszammymax; int cwarsguthixmax = server.cwarsguthixmax;
Hyperventilate server.godScore() are the var values. what you're looking for is.That's NOT properly named either.Code:public static int cwarssaramax = server.cwarssaramax();
Import the server.java? ...
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |