Master account system issue with double logins.
#3

Quote:
Originally Posted by Boarden
View Post
Try this, use strcmp to compare strings instead of "==".

Code:
if(strcmp(Account[i][Username], name, true) == 0)
{
	SendClientMessage(playerid, COLOR_ERROR, "Someone is already connected with this account.") && SendClientMessage(playerid, COLOR_INFO, "Please login with a different username.");
	SetTimerEx("KickTimer", 200, false, "i", playerid); 
}
Hi, thanks a lot for trying to help.

It compiles now, but it still doesn't work. I just get kicked when I join, regardless of if someone is already connected.
Reply


Messages In This Thread
Master account system issue with double logins. - by Stefhan - 14.04.2019, 12:24
Re: Master account system issue with double logins. - by Boarden - 14.04.2019, 12:43
Re: Master account system issue with double logins. - by Stefhan - 14.04.2019, 12:52

Forum Jump:


Users browsing this thread: 2 Guest(s)