Nothing happens after logging into my server
#1

Hey,

For some reason when I test my server on my local host, everything runs fine. I am able to login/register after typing a password. I re-uploaded the gamemode to the FTP account and restarted my server, but when I try to login/register, nothing happens. The login box disappears and it stays on the same screen. If I try to type something it says "You are muted, you cannot talk."

It's working fine on my test server, but won't work when I upload it to my host.

The last thing I changed on the script before I uploaded it was the destination of the scriptfiles. Instead of it saving to TWD/accounts/%s.ini, I've changed it to make it save at playerfiles/accounts/%s.ini

pawn Код:
format(string, sizeof(string), "Playerfiles/accounts/%s.ini", plname);
I have a feeling this has something to do with it. Maybe it's not loading the account properly or something.

Any help would be greatly appreciated. Thanks!

Edit: I do have a folder in both the local host and host: Scriptfiles->Playerfiles->accounts
Reply
#2

Did you change the path throughout the ENTIRE script? Not just login and register?

EDIT:
Quote:

format(string, sizeof(string), "Playerfiles/accounts/%s.ini", plname);

Needs to become
Quote:

format(string, sizeof(string), "playerfiles/accounts/%s.ini", plname);

SA-MP is very case-sensitive when it comes to saving and loading. Fix this in both your scriptfiles and the script.
Reply
#3

Thanks for your reply.

Yeah sorry I forgot to mention, everything has a capital "P". Even the scriptfiles folder that contains the Playerfiles folder. It all matches up, so don't know why it's happening
Reply
#4

Where is it calling for the writing of the account file?
Reply
#5

Do you mean this?:

pawn Код:
new File: hFile = fopen(string3, io_write);
Reply
#6

I need more code, uhhh, when the login/register dialog is supposed to pop up, let me see the code.
Reply
#7

Does anything come up in your server's log?
Reply
#8

Here is my "OnPlayerConnect" code;

pawn Код:
public OnPlayerConnect(playerid)
    {
        //Hungry[playerid] = 0;
        new plname[MAX_PLAYER_NAME];

        //VehicleOwned[playerid] = INVALID_VEHICLE_ID;

    //  new giveplayerid;
        new string[128];
        AttemptTimmer[playerid] = 0; gPlayerSpectating[playerid] = 0; Registrando[playerid] = 0; Orejon[playerid] = 0; VHabGolpeo[playerid] = 0; AFK[playerid] = 0; AdminDuty[playerid] = 0; PlayerInfo[playerid][pLighter] = 0; PlayerInfo[playerid][pBandage] = 0; PlayerInfo[playerid][pMask] = 0; PlayerInfo[playerid][pBottle] = 0;
        ResetearArmas(playerid); PlayerInfo[playerid][jSpawn] = 0; PlayerInfo[playerid][jInt] = 0; HelpMessages[playerid] = 0; PlayerInfo[playerid][jClothes] = 0; PlayerInfo[playerid][jTyrant] = 0;
        AttemptGet[playerid] = 0; TieneBOMBA[playerid] = 0; PlayerInfo[playerid][pPointsR] = 0; PlayersChannel[playerid] = 0; strmid(PlayerInfo[playerid][jPorSalio], "Unknown", 0, strlen("Unknown"), 255); strmid(PlayerInfo[playerid][pAccent], "None", 0, strlen("None"), 255);
        CuentaExistente[playerid] = 0; MascaraPuesta[playerid] = 0; Desmayado[playerid] = 0; gPlayerUsingLoopingAnim[playerid] = 0; PlayerInfo[playerid][pBandage] = 0; PlayerInfo[playerid][jVendas] = 0;
        JugadorLogeado[playerid] = 0; PlayerInfo[playerid][pAdmin] = 0; PlayerInfo[playerid][pNewAdmin] = 0; PlayerInfo[playerid][pMember] = 0; PlayerInfo[playerid][pBanned] = 0; PlayerInfo[playerid][pLeader] = 0; PlayerInfo[playerid][jWalkie] = 1; PlayerInfo[playerid][jSintonia] = 0;
        PlayerInfo[playerid][pWeapon] = 0; PlayerInfo[playerid][pWeapon2] = 0; PlayerInfo[playerid][pWeapon3] = 0; PlayerInfo[playerid][pWeapondura] = 0; PlayerInfo[playerid][jFosforos] = 0;
        PlayerInfo[playerid][jAmmo] = 0; PlayerInfo[playerid][jAmmo3] = 0; PlayerInfo[playerid][jAmmo2] = 0; PlayerInfo[playerid][pBottle] = 0;
        PlayerInfo[playerid][jKitMed] = 0; PlayerInfo[playerid][pChips] = 0; PlayerInfo[playerid][pVip] = 0; PlayerInfo[playerid][pVtime] = 0; PlayerInfo[playerid][jEdad] = 0; JustWhisp[playerid] = 0; PlayerInfo[playerid][pLighter] = 0;
        PlayerInfo[playerid][pInfected] = 0; PlayerInfo[playerid][jAimskill] = 0; PlayerInfo[playerid][jMechskill] = 0; PlayerInfo[playerid][jLuckskill] = 0; PlayerInfo[playerid][jZombiesPT] = 0; PlayerInfo[playerid][jSexo] = 0;
        PlayerInfo[playerid][jTiempoDeCarcel] = 0; PlayerInfo[playerid][jEncarcelado] = 0; PlayerInfo[playerid][jZombie] = 0; PlayerInfo[playerid][jTutorial] = 0; PlayerInfo[playerid][pTalent] = 0; JustOOC[playerid] = 0;
        GetPlayerName(playerid, plname, sizeof(plname)); PlayerInfo[playerid][jFosforos] = 0; TieneBOMBA[playerid] = 0; LPuestos[playerid] = 0; GPuesto[playerid] = 0; PMBlockeado[playerid] = 0; TRAJE[playerid] = 0;
        JustReported[playerid] = 0; Informacion[playerid][Manejando] = 0; /*Audifono[playerid] = 0;*/ PlayerNeedsHelp[playerid] = 0; JugadorListo[playerid] = 0; ConTexto[playerid] = 0; SinLeven[playerid] = 0;  PlayerInfo[playerid][pSideFaction] = 0; PlayerInfo[playerid][pSideLeader] = 0; PlayerInfo[playerid][gDice] = 0;
        PlayerInfo[playerid][pWeed] = 0; PlayerInfo[playerid][pSeeds] = 0; PlayerInfo[playerid][pExp] = 0; PlayerInfo[playerid][pAtime] = 0; PlayerInfo[playerid][jHoras] = 0; PlayerInfo[playerid][pZK] = 0;
        PlayerInfo[playerid][jVirusD] = 0; PlayerInfo[playerid][jCAdrenalina] = 0; PlayerInfo[playerid][jAdrenalina] = 0; PlayerInfo[playerid][jMedicinaA] = 0; PlayerInfo[playerid][jMedicinaB] = 0; PlayerInfo[playerid][ptSeeds] = 0; PlayerInfo[playerid][pSanta] = 0; PlayerInfo[playerid][pWood] = 0;
        PlayerInfo[playerid][pPZombie] = 0; PlayerInfo[playerid][pCraftingSkill] = 0; PlayerInfo[playerid][pMaterials] = 0; PlayerInfo[playerid][pMiningSkill] = 0; PlayerInfo[playerid][pCrafted] = 0; PlayerInfo[playerid][pPickAxe] = 0; PlayerInfo[playerid][pCuttingSkill] = 0; PlayerInfo[playerid][pIsCutting] = 0; PlayerInfo[playerid][pAxe] = 0;
        AdminDuty[playerid] = 0; PlayerInfo[playerid][pAllowed] = 0;
        format(string, sizeof(string), "Playerfiles/accounts/%s.ini", plname);
        SetPlayerVirtualWorld(playerid,0);
        SyncPlayerTime(playerid);
        YoActivado[playerid] = 0;
        if(IsPlayerNPC(playerid))
        {
            gTeam[playerid] = ZOMBIE;
            SetSpawnInfo(playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 );
            SpawnPlayer(playerid);
            return 1;
        }
        new rand = random(1000) + random(9999);
        PlayerMaskID[playerid] = rand;
        WearingMask[playerid] = 0;
        //AlreadyGiveWeapons[playerid] = false;
        //SetTimerEx("ChipsUpdate",2000,1,"i",playerid);
        PlayAudioStreamForPlayer(playerid,"http://208.115.247.59/sound/parp/PGopeningsound.mp3");
        SetTimerEx("ChipsUpdate",2000,1,"i",playerid);

if(fexist(string))
        {
            CuentaExistente[playerid] = 1;
            format(string, sizeof(string), "Welcome back to Living Dead Roleplay!", Version);
            SendClientMessage(playerid, CELESTE, string);
            new s[128];
            new loginname[MAX_PLAYER_NAME];
            GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
            format(s,sizeof(s),"\t{FF0000}Welcome, {FFA500}%s.\n\n{E0FFFF}Enter your password to login",loginname);
            ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login Panel",s,"Login","");
            SetPlayerCameraPos(playerid, 1418.8717,-1639.4999,23.4696);
            SetPlayerCameraLookAt(playerid, 1399.2412,-1606.6733,14.4003);
            SetPlayerPos(playerid,2509.9282,-1472.3695,24.0294);
            TogglePlayerSpectating(playerid, 1);
        }
        else
        {
            CuentaExistente[playerid] = 0;
            format(string, sizeof(string), "Welcome to Living Dead Roleplay!", Version);
            SendClientMessage(playerid, CELESTE, string);
            new s[128];
            new loginname[MAX_PLAYER_NAME];
            GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
            format(s,sizeof(s),"\t{FF0000}Welcome, %s.\n\n{E0FFFF}Enter your password below to register and login.",loginname);
            ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registration Panel",s,"Register","");
            SetPlayerCameraPos(playerid, 1418.8717,-1639.4999,23.4696);
            SetPlayerCameraLookAt(playerid, 1399.2412,-1606.6733,14.4003);
            SetPlayerPos(playerid,2509.9282,-1472.3695,24.0294);
            TogglePlayerSpectating(playerid, 1);
        }
        return 1;
    }
Reply
#9

Here is "OnPlayerRequestClass"
Just in case

pawn Код:
if(JugadorLogeado[playerid] != 1)
        {
            if(CuentaExistente[playerid] == 1)
            {
                new s[128];
                new loginname[MAX_PLAYER_NAME];
                GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
                format(s,sizeof(s),"\t{FF0000}Welcome, {FFA500}%s.\n\n{E0FFFF}Enter your password to login",loginname);
                ApplyAnimation(playerid,"Freeweights","gym_free_celebrate",4.1,1,1,1,1,1);
                ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login Panel",s,"Login","");
                TogglePlayerSpectating(playerid, 1);
                return 1;
            }
            else
            {
                new s[128];
                new loginname[MAX_PLAYER_NAME];
                GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
                format(s,sizeof(s),"\t{FF0000}Welcome, %s.\n\n{E0FFFF}Enter your password below to register and login.",loginname);
                ApplyAnimation(playerid,"Freeweights","gym_free_celebrate",4.1,1,1,1,1,1);
                ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Registration Panel",s,"Register","");
                TogglePlayerSpectating(playerid, 1);
            }
        }
        else
        {
            SpawnPlayer(playerid);
        }
        return 1;
}
Reply
#10

Should actually answer what SickAttack said...
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)