07.07.2014, 04:48
this?
i forgot to put onplayerconnect
i think i gave the one were i saved player data
how does it looks like? i am kind new in this
PHP код:
format(file, sizeof(file), scriptfiles, name);
PHP код:
//register /login system
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), scriptfiles, name);
if (!dini_Exists(file))
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "{9ACD32}ILSR - Register{FFFFFF}", "You have joined under a non registered account\nPlease make sure that all mods are turned off\nPlease enter your password below:\n\n(NOTE: Enter the password you will remember)", "Register", "Quit");
}
if(fexist(file))
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "{9ACD32}ILSRP - Login{FFFFFF}", "{FFFFFF}You have rejoined under a registered account\nPlease make sure that all mods are turned off\nPlease enter your password below:\n\n(NOTE: Entering a wrong password, gets you IP blocked){FFFFFF}", "Login", "Quit");
}
//
PHP код:
#define scriptfiles "/ILSRP/%s.ini"