Doesnt Register
#1

Hello, I have my GF edit, and when i enter the server,
it says to registers
When i type in my password and click "ok" it disappears, when i click the arrows it says to register agian and agian

Im using Volt-Host and it works perfectly on Local host.

Any solutions?
Reply
#2

Maybe there is sumthing wrong with plugins, as far as i know volthost uses linux, so make sure you have in your server.cfg at the plugins,line: plugins whirlpool.so streamer.so sscanf.so etc , dont know if this are your plugins, but make sure that,after every plugin is staying: .so else it wont liad the plugin
Reply
#3

Problem must be at OnDialogResponse.Show lines at OnDialogResponse of Register..
Reply
#4

Quote:
Originally Posted by SpiderWalk
Посмотреть сообщение
Problem must be at OnDialogResponse.Show lines at OnDialogResponse of Register..
The register system works for Localhost, not for volt-host
heres the code anyways
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new sendername[MAX_PLAYER_NAME];
    new string[128];
    if(response)
    {
        if(dialogid == 12346 || dialogid == 12347)
        {
            if(strlen(inputtext))
            {
                new tmppass[64];
                strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
                //Encrypt(tmppass);
                OnPlayerLogin(playerid,tmppass);
            }
            else
            {
                new loginstring[128];
                new loginname[64];
                GetPlayerName(playerid,loginname,sizeof(loginname));
                format(loginstring,sizeof(loginstring),"WRONG PASSWORD\nPlease enter the correct password:",loginname);
                ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");
                gPlayerLogTries[playerid] += 1;
                if(gPlayerLogTries[playerid] == 5) { Ban(playerid); }
            }
        }
        if(dialogid == 12345)
        {
            if(strlen(inputtext))
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "%s.ini", sendername);
                new File: hFile = fopen(string, io_read);
                if (hFile)
                {
                    SendClientMessage(playerid, COLOR_YELLOW, "That Username is already taken, please choose a different one.");
                    fclose(hFile);
                    return 1;
                }
                new tmppass[64];
                strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
                //Encrypt(tmppass);
                OnPlayerRegister(playerid,tmppass);
            }
            else
            {
                new regstring[128];
                new regname[64];
                GetPlayerName(playerid,regname,sizeof(regname));
                format(regstring,sizeof(regstring),"Welcome, %s\nYou dont have an account.\nPlease register:",regname);
                ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Register","Exit");
            }
        }
    }
    else
    {
        Kick(playerid);
    }
    return 1;
}
Reply
#5

Then check Plugins...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)