31.01.2013, 11:00
If anyone tries to login and if the password is right. The player will be logged in, but i have 2 Server for my TDM Server, if the player is online in another server, the server won't let him to login.
My Bug: Now my bug is the server kicks the player and doesn't send him this ClientMessage. I set the status on mysql intentionally to 1 so i'll check if it works or not. But it doesn't work.
I get kick but no ClientMessage.
It was working perfect in version 0.3e
pawn Code:
format(str, sizeof(str), "SELECT status FROM users WHERE username = '%s'", EscapeName(playerid));
mysql_query(str);
mysql_store_result();
new status = mysql_fetch_int();
mysql_free_result();
if(status == 1)
{
SendClientMessage(playerid, COLOR_RED, "You are alreay logged in another server.");
Kick(playerid);
}
I get kick but no ClientMessage.
It was working perfect in version 0.3e