Register Problem?
#1

SOLVED>
Reply
#2

You might be missing some folders in the server directory. Show us the register command code.
Reply
#3

This is the check to see if the player is logged in or not

Код:
//Check to see if they are registered or logged in
	if(udb_Exists(PlayerName(playerid)))
	{
		SendClientMessage(playerid,COLOR_ERROR,"This player name has already been registered. Please login before you spawn.");
		ShowLoginScreen(playerid);
	}
	else
	if(!udb_Exists(PlayerName(playerid)))
	{
		SendClientMessage(playerid,COLOR_ERROR,"This player name has not been registered. You must register before playing.");
		ShowRegisterScreen(playerid);
	}
This is the function to show login screen
Код:
stock ShowLoginScreen(playerid)
{
	new string[128];
    format(string, sizeof(string), "Welcome back %s\nBefore playing you must login\nEnter your password below and click login",PlayerName(playerid));
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login required",string,"Login","Cancel");
}
This is the function to show register screen

Код:
stock ShowRegisterScreen(playerid)
{
    new string[128];
    format(string, sizeof(string), "Welcome to the server %s\nThis server requires you to register an account before playing\nEnter your desired password below then click ok",PlayerName(playerid));
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registration required",string,"Register","Cancel");
}
Reply
#4

Bump, this is very important.. can't even log in without fixing this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)