18.04.2015, 00:34
Alright so im using LuxAdmin filterscript, and when i register, it says that im not logged in. when i try to use /login it says account doesnt exist. Can anyone help? I didnt touch or change anything involving the register/login codes
Код:
public OnPlayerSpawn(playerid) { //============================================================================== // Request Register //============================================================================== if(AccInfo[playerid][Registered] == 0 && ServerInfo[MustRegister] == 1) { #if USE_DIALOGS == true new rstring[256]; format(rstring,256,"Welcome to the '%s'\n\nAccount '%s' is not registred!\n\nEnter the password to Register your Account:",GetServerHostName(),pName(playerid)); ShowPlayerDialog(playerid,DIALOGID+66,DIALOG_STYLE_INPUT,"Register Account",rstring,"Register","Quit"); #endif return 1; } //============================================================================== // Request Login //============================================================================== if(ServerInfo[MustLogin] == 1 && AccInfo[playerid][Registered] == 1 && AccInfo[playerid][LoggedIn] == 0) { #if USE_DIALOGS == true new lstring[256]; format(lstring,256,"That account '%s 'is Registered!\n\n Login to access your Account:",pName(playerid)); ShowPlayerDialog(playerid,DIALOGID+67,DIALOG_STYLE_INPUT,"Login Account",lstring,"Login","Quit"); #endif return 1; }