11-27-2016, 03:18 PM
Awiion Написал:bola,
His login is not correct, the base is looking for his login and gives an error, because it is not.
djnansr,
Код:string Login;
byte[] Ip;
protected internal override void read()
{
readH();
Login = readS(readC());
readB(5);
Ip = readB(4);
}
Login you do not correct, cannot be spaces.
yes i agree, but he have two problems, packet struct wrong and if he have a mysql overload, and it do not answer the account login, proccess will crash, this do not should happen, any nullpointer return will result in crash.
exceptions must be handle properly.