View Single Post
  #2  
Old 12-29-2011, 08:11 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Gunderak View Post
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(0temp.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.
__________________
Reply With Quote