Dialog Register/Login Bug ! D:
#6

LOL tnx for you information

i add it on OnPlayerConnect

pawn Код:
new name[MAX_PLAYER_NAME]; // the name and the file
    GetPlayerName(playerid, name, MAX_PLAYER_NAME); // getting client's name
    format(file,sizeof(file),"/LuxAdmin/Accounts/%s.sav",udb_encode(PlayerName2(playerid)) );

if(!fexist(file)) { // if the file does not exists
        new rstring[256];
        format(rstring,256,"Welcome %s\n\nEnter You Password To Connect To This Server:\n[0.3x]Freeroam+Advance[0.3x]",pName(playerid));
        ShowPlayerDialog(playerid,DIALOGID+66,DIALOG_STYLE_INPUT,"Register Account",rstring,"Register","Quit");
    }
    else {
        new LOL[256];
        GetPlayerName(playerid, name, MAX_PLAYER_NAME);
        format(LOL,256,"Welcome Back %s\n\nEnter You Password To Connect To This Server:\n[0.3x]Freeroam+Advance[0.3x]",pName(playerid));
        ShowPlayerDialog(playerid,DIALOGID+67,DIALOG_STYLE_PASSWORD,"Login Account",LOL,"Login","Quit");
    }
Reply


Messages In This Thread
Dialog Register/Login Bug ! D: - by Guest123 - 12.05.2013, 07:30
Re: Dialog Register/Login Bug ! D: - by BossZk - 12.05.2013, 07:39
Re: Dialog Register/Login Bug ! D: - by Guest123 - 12.05.2013, 07:45
Re: Dialog Register/Login Bug ! D: - by Guest123 - 12.05.2013, 07:58
Re: Dialog Register/Login Bug ! D: - by Kwarde - 12.05.2013, 09:30
Re: Dialog Register/Login Bug ! D: - by Guest123 - 12.05.2013, 09:54
Re: Dialog Register/Login Bug ! D: - by Kwarde - 12.05.2013, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)