03.07.2011, 15:18
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?
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
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;
}
If theres anything you guys need to know, please tell me