Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Check player count.
- */
- public static int getPlayerCount() {
- return 0;
- }
- /*
- * Counts players inside clan wars
- */
- public static int getRedClanPlayerCount() {
- int redCount = 0;
- for (Player p : players) {
- if (p != null) {
- if (p.clanWarsFightArea()) {
- if (p.redTeam == 1)
- redCount++;
- }
- }
- }
- return redCount;
- }
- public static int getWhiteClanPlayerCount() {
- int whiteCount = 0;
- for (Player p : players) {
- if (p != null) {
- if (p.clanWarsFightArea()) {
- if (p.whiteTeam == 1)
- whiteCount++;
- }
- }
- }
- return whiteCount;
- }
- int count = 0;
- for (Player p : players) {
- if (p != null) {
- count++;
- }
- }
- return count;
- }
- /**
- * get player count that are in a clan.
- */
- public static int getBlackClanPlayerCount(int blackCount) {
- for (Player p : players) {
- if (p != null) {
- if (p.clanWarsFightArea()) {
- if (p.blackTeam)
- blackCount++;
- }
- }
- }
- return blackCount;
- }
- /**
- * get player count that are in a clan.
- */
- public static int getWhiteClanPlayerCount(int whiteCount) {
- for (Player p : players) {
- if (p != null) {
- if (p.clanWarsFightArea()) {
- if (p.whiteTeam)
- whiteCount++;
- }
- }
- }
- return whiteCount;
- }
- The errors is this:
- Compiling net/com/codeusa/Engine.java
- .\net\com\codeusa\Engine.java:318: illegal start of expression
- public static int getRedClanPlayerCount() {
- ^
- .\net\com\codeusa\Engine.java:318: illegal start of expression
- public static int getRedClanPlayerCount() {
- ^
- .\net\com\codeusa\Engine.java:318: ';' expected
- public static int getRedClanPlayerCount() {
- ^
- .\net\com\codeusa\Engine.java:318: ';' expected
- public static int getRedClanPlayerCount() {
- ^
- .\net\com\codeusa\Engine.java:333: illegal start of expression
- public static int getWhiteClanPlayerCount() {
- ^
- .\net\com\codeusa\Engine.java:333: illegal start of expression
- public static int getWhiteClanPlayerCount() {
- ^
- .\net\com\codeusa\Engine.java:333: ';' expected
- public static int getWhiteClanPlayerCount() {
- ^
- .\net\com\codeusa\Engine.java:333: ';' expected
- public static int getWhiteClanPlayerCount() {
- ^
- 8 errors
- Press any key to continue . . .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement