//Check if player is in the group nonpvp if (player b ==(this is where it needs to check if the player is on the list in this file and if they are return true)
Help is appreciated, thanks!




Posted 21 December 2010 - 12:33 PM
//Check if player is in the group nonpvp if (player b ==(this is where it needs to check if the player is on the list in this file and if they are return true)
Posted 21 December 2010 - 01:11 PM
Scottm, on 21 December 2010 - 12:07 PM, said:
Posted 21 December 2010 - 01:19 PM
This post has been edited by Scottm: 21 December 2010 - 01:20 PM
Posted 21 December 2010 - 01:38 PM
Scottm, on 21 December 2010 - 12:19 PM, said:
Posted 21 December 2010 - 02:11 PM
Posted 21 December 2010 - 02:22 PM
Dogstopper, on 21 December 2010 - 01:11 PM, said:
import java.io.*;
public class File {
BufferedReader in;
String read;
public File(){
if {
//open a bufferedReader to file helloworld.txt
in = new BufferedReader(new FileReader("helloworld.txt"));
//read a line from helloworld.txt and save into a string
read = in.contains(player B)/>;
//print out the line
System.out.println("file output: " + read);
//safely close the BufferedReader after use
in.close();
}catch(IOException e){
System.out.println("There was a problem:" + e);
}
}
public static void main(String[] args){
File File = new File();
}
}
This post has been edited by Mokgar: 21 December 2010 - 02:22 PM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
