Quote:
Originally Posted by Gunderak
So that it checks the player account part of the levenll name vs the players account.
You can't exactly compare Graal123456 to Graal123456.nw unless you use .starts which you said not to.
|
Sure you can, chop the .nw off the end.
PHP Code:
temp.str1 = "Graal123456.nw";
temp.str2 = "Graal123456";
temp.str1 = temp.str1.substring(0, temp.str1.length() - 3);
echo(temp.str1 == temp.str2); // echoes 1
You can't use starts because it's only checking the first part, i.e. player "cbk" could enter my house.