Y_ini loading file question
#6

I don't understand your question.

An example (from a tutorial):
pawn Код:
public OnPlayerConnect(playerid)
{
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
    }
    return 1;
}
extra parameter is assigned playerid which is given by OnPlayerConnect callback.
Reply


Messages In This Thread
Y_ini loading file question - by Riwerry - 08.01.2014, 19:32
Re: Y_ini loading file question - by Konstantinos - 08.01.2014, 19:41
Re: Y_ini loading file question - by Riwerry - 08.01.2014, 19:46
Re: Y_ini loading file question - by Konstantinos - 08.01.2014, 19:47
Re: Y_ini loading file question - by Riwerry - 08.01.2014, 19:53
Re: Y_ini loading file question - by Konstantinos - 08.01.2014, 20:00
Re: Y_ini loading file question - by Riwerry - 08.01.2014, 20:04

Forum Jump:


Users browsing this thread: 4 Guest(s)