Dialog problem. Registration.
#6

Quote:
Originally Posted by Vince
Посмотреть сообщение
Both of your codes (above) don't make any sense. If response is 0, then it is 0 and nothing else. The other code block is never called. There is nothing wrong with the original structure the OP posted.

The file is probably created when connecting.
OnPlayerConnect :

pawn Код:
public OnPlayerConnect(playerid)
{
    new Name [ 35 ] ;
    format ( Name , 35 , UserPath , GetName ( playerid ) ) ;
    if ( fexist ( Name ) )
    {
        INI_ParseFile ( Name , "LoadUser_Data", .bExtra = true, .extra = playerid);
        ShowPlayerDialog ( playerid , DIALOG_LOG , DIALOG_STYLE_INPUT , "{80FF00}Login" , "{FFFFFF}Your account was {80FF00}found {FFFFFF}in our database!\nType your password to login:" , "Login" , "Leave" ) ;
    }
    else
    {
        ShowPlayerDialog ( playerid , DIALOG_REG , DIALOG_STYLE_INPUT , "{0215FB}Register" , "{FFFFFF}Your account does {FF0000}not {FFFFFF}exist in our database!\nType your desired password to create an account:" , "Register" , "Leave" ) ;
    }
    return 1;
}

Mistakes ?
Reply


Messages In This Thread
Dialog problem. Registration. - by Ronaldo_raul™ - 26.07.2012, 09:19
Re: Dialog problem. Registration. - by FireCat - 26.07.2012, 10:10
Re: Dialog problem. Registration. - by Alexis1999 - 26.07.2012, 10:17
Re: Dialog problem. Registration. - by Ronaldo_raul™ - 26.07.2012, 10:41
Re: Dialog problem. Registration. - by Vince - 26.07.2012, 10:45
Re: Dialog problem. Registration. - by Ronaldo_raul™ - 26.07.2012, 10:52
Re: Dialog problem. Registration. - by playbox12 - 26.07.2012, 11:06
Re: Dialog problem. Registration. - by Ronaldo_raul™ - 26.07.2012, 11:16
Re: Dialog problem. Registration. - by Ronaldo_raul™ - 26.07.2012, 16:10
Re: Dialog problem. Registration. - by iGetty - 26.07.2012, 16:14

Forum Jump:


Users browsing this thread: 2 Guest(s)