Help please with making registration for server)
#1

Hi! here is new problem: login! Login always goes successfully, even if password is wrong, see please what's wrong:

PHP код:
    if(dialogid == DIALID+1)
    {
    if(
response)
    {
        if(
dini_Exists(ustring))
        {
        
GetPlayerName(playeridnamesizeof(name));
          
format(ustringsizeof(ustring), "UltraPadmin/Users/%s.txt"name);
        new 
password[256];
        
password dini_Get(ustring,"PLAYERPASSWORD");
        if(
strcmp(password,inputtext,false,strlen(password)) == 0)
         {
        
SendClientMessage(playerid0xFFFFFFFF"{00ff00}You successfully logged in!");
        }
          else
         {
        
ShowPlayerDialog(playeridDIALID+1DIALOG_STYLE_PASSWORD"Login""This account is registered! Please type your password here or you will be kicked!""Login""Kick me");
        }
        }
        if(!
dini_Exists(ustring))
        {
        
SendClientMessage(playerid0xFFFFFFFF"{ff0000}You are not registered!");
        }
    }
    else
    {
    
Kick(playerid);
    }
    }

Thanks
Reply


Messages In This Thread
Help please with making admin system for server) - by pasha97 - 13.05.2012, 14:32
Re: Help please with making registration for server) - by Dan. - 13.05.2012, 14:40
Re: Help please with making registration for server) - by pasha97 - 13.05.2012, 16:04

Forum Jump:


Users browsing this thread: 1 Guest(s)