[HELP]Character Creation

06/01/2010 21:06 ryuchetval#1
Hello everybody...first of all I'm using LOTF 5017 MySQL based.

I want to know how can I check if the character name is already taken because it will crash the server if the name is the same with an existing one and I don't know to to make a check...Help?
Thanks in advance :)
06/01/2010 21:22 MonstersAbroad#2
idk if it would anything like this
[CODE]
if (Kernel.Characters.Contains(client.entity.UID))
{
Message("Please choose a diffrent character name")
}
else
{
character code etcccccc
}
06/01/2010 21:32 ryuchetval#3
Quote:
Originally Posted by MonstersAbroad View Post
idk if it would anything like this
[CODE]
if (Kernel.Characters.Contains(client.entity.UID))
{
Message("Please choose a diffrent character name")
}
else
{
character code etcccccc
}
well there's a hastable.... idk what hastable really means with "AllChars" ...
could i do something like if (World.Allchars.contains(charname/uid/char))
return ;
else go on?:D
06/01/2010 21:44 Arcо#4
You can try it.
Trial and error is the best way to learn.
06/01/2010 22:27 ryuchetval#5
Quote:
Originally Posted by .Arco View Post
You can try it.
Trial and error is the best way to learn.
Empty project helped to solve it thanks anyway guys :)