PDA

View Full Version : 317 Fixing crash when no name is inserted at login



owner blade
June 19th, 2010, 10:37
What your adding:
Only the registered members can see the link.

If you do this tutorial your players wont crash if they accidently click on login without entering their usernames

In your client.java search this:

method84(String s, String s1, boolean flag) {U should see one or two line sbelow it try {, under try { add:

if(s == "" && s1 == "") {
aString1266 = "@red@You're supposed to type your username ";
aString1267 = "@red@and password down there.";
return;
}
if(s != "" && s1 == "") {
aString1266 = "@red@You're supposed to type";
aString1267 = "@redyour password down there.";
return;
}
if(s == "" && s1 != "") {
aString1266 = "@red@You're supposed to type";
aString1267 = "@red@your username down there.";
return;
}
if(s1 == "") {
aString1266 = "@red@You're supposed to type";
aString1267 = "@red@your password down there.";
return;
}
if(s == "") {
aString1266 = "@red@You're supposed to type";
aString1267 = "@red@your username down there.";
return;
}

h1 sk1ller
June 22nd, 2010, 04:29
Very Nice This Is For 317 Too Right??

khalen
June 24th, 2010, 04:41
It's an alright start, but this would be much easier to handle inside of the server it self, in case someone else uses a client different from yours. But other then that, it's nice. 4/10

Fenway`
June 24th, 2010, 04:43
thats why you require your client for your server so people cant use cheat clients

Trey
July 25th, 2010, 07:23
You posted this again for some reason, so this is getting locked.