Hey Everyone!
I can't really figure out what's wrong with this code:
Basically, this is used in the creation of a new character.
This is how it looks from the database:
[Only registered and activated users can see links. Click Here To Register...]
This is the error in the console:
[Only registered and activated users can see links. Click Here To Register...]
Attempting to figure out what's wrong:
[Only registered and activated users can see links. Click Here To Register...]
Any suggestions?
I am using MySqlHandler.dll
I can't really figure out what's wrong with this code:
Code:
public static bool CharExists(string Name)
{
bool exists = false;
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.SELECT);
cmd.Select("cq_user").Where("name", Name);
MySqlReader r = new MySqlReader(cmd);
[COLOR="Red"] if (r.Read())[/COLOR] [COLOR="SeaGreen"]// Line 79[/COLOR]
{
if (r.ReadInt32("id") > 0)
exists = true;
}
return exists;
}
This is how it looks from the database:
[Only registered and activated users can see links. Click Here To Register...]
This is the error in the console:
[Only registered and activated users can see links. Click Here To Register...]
Attempting to figure out what's wrong:
[Only registered and activated users can see links. Click Here To Register...]
Any suggestions?
I am using MySqlHandler.dll