Admin Filterscript
#1

Hey guys,

Im cleaning up my admin script, changing it to DJson etc. But since i changed it, it doesnt show the dialog when i connect anymore. Does anyone know why it doesnt show anymore?

pawn Код:
#define Pfile "AdminSystem/Users/%s.djson"
#define Register ShowPlayerDialog(playerid, REGISTER, DIALOG_STYLE_INPUT, "Register", "Welcome to our server! Please fill in a password to register your account. \nAfter that we got a few questions for you. \n\nPassword:" , "Ok", "");
#define Login ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", "Welcome back! Please fill in your password. \n\nPassword: ", "Ok", "");
public OnPlayerConnect(playerid)
{
    new file[128], name[24];
    GetPlayerName(playerid, name, sizeof name); format(file, sizeof file, Pfile, name);
    if(!fexist(file))
    {
        Register
    }
    else
    {
        Login
    }
    return 1;
}
Also i got the folders in my scriptfiles, and the file of my account does NOT exist
If theres anything you guys need to know, please tell me
Reply


Messages In This Thread
Admin Filterscript - by Wesley221 - 03.07.2011, 15:18
Re: Admin Filterscript - by Mean - 03.07.2011, 15:56
Re: Admin Filterscript - by HyperZ - 03.07.2011, 15:59
Re: Admin Filterscript - by SpiderWalk - 03.07.2011, 16:13
Re: Admin Filterscript - by Wesley221 - 03.07.2011, 16:29
Re: Admin Filterscript - by Wesley221 - 04.07.2011, 07:55
Re: Admin Filterscript - by MadeMan - 04.07.2011, 10:46
Re: Admin Filterscript - by Mean - 04.07.2011, 10:48
Re: Admin Filterscript - by Wesley221 - 04.07.2011, 11:49
Re: Admin Filterscript - by Mean - 04.07.2011, 13:28

Forum Jump:


Users browsing this thread: 1 Guest(s)