Problem with registration
#6

Here is:

Register:

Код:
if(strcmp(cmd, "/register", true) == 0) //players ingame stats
	{
 		if (!dini_Exists(udb_encode(playername)))
   		{
     		GetPlayerName(playerid, sendername, sizeof(sendername));
        	ShowPlayerDialog(playerid,50,DIALOG_STYLE_INPUT,"Register","Welcome to the server\n\nPlease open a new account\n\nEnter a password:","Register","Quit");
        	new msg[128];
			format(msg,sizeof(msg),"1,9Player %s has registered an account here at COD:SAMP", sendername);
			IRC_GroupSay(IRC_Group,"PRIVATE CHAN",msg);
     	}
   		else
		{
        	SendClientMessage(playerid, COLOR_GREY, "You already have a registered account!");
		}
		return 1;
	}
Login:

Код:
   	if(strcmp(cmd, "/login", true) == 0) //players ingame stats
	{
	    if(logged[playerid] == 1)
	    {
	        SendClientMessage(playerid, COLOR_RED, "You are already logged in!");
	        return 1;
	    }

     	if (dini_Exists(udb_encode(playername)))
   		{
        	ShowPlayerDialog(playerid,60,DIALOG_STYLE_INPUT,"Login","Welcome to the server\n\nPlease enter your server password\n\nEnter a password:","Login","Quit");
     	}
   		else
		{
        	SendClientMessage(playerid, COLOR_GREY, "You need to register an account before you can login to one!");
		}
		return 1;
	}
Reply


Messages In This Thread
Problem with registration - by Face9000 - 28.10.2010, 18:47
Re: Problem with registration - by Face9000 - 29.10.2010, 14:02
Re: Problem with registration - by willsuckformoney - 29.10.2010, 14:12
Re: Problem with registration - by Face9000 - 29.10.2010, 17:35
Respuesta: Problem with registration - by admantis - 29.10.2010, 17:36
Re: Problem with registration - by Face9000 - 29.10.2010, 17:54
Re: Problem with registration - by Face9000 - 31.10.2010, 06:14
Re: Problem with registration - by Face9000 - 01.11.2010, 13:27

Forum Jump:


Users browsing this thread: 1 Guest(s)