Having a problem
#1

Hey people, I've been trying to transfer my friends server to 0.3, everything seems to be running okay, except this.

When a player logs into the server, he gets told his account is not registered(should be like that)

now, when that person registers his account, he is asked to log in, when he logs in, the samp_server.exe shuts down, is there any reason for it?

Login code:
pawn Код:
if (strcmp(cmd, "/login", true) == 0) // Logins
    {
        new tmppass[128];
        if(AccountInfo[playerid][Logged] == 1) return SendClientMessage(playerid, RED, "You are already logged in.");
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, ORANGE, "USAGE: /login [password]");
        new plname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, plname, sizeof(plname));
        format(string, sizeof(string), "/UAP/%s.UrpAccount", plname);
        if(!fexist(string)) return SendClientMessage(playerid, GREY, ">> That account isn't registered! Please register: /register [password]");
        strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
        OnPlayerLogin(playerid, MD5_Hash(tmppass));
        return 1;
    }
and also, the player can spawn without logging in, which he/she should not be able to, is there anyway to disable that with OnPlayerSpawn?
Reply
#2

[Bump] It's been after 12h, are there any suggestions for this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)