Can't connect to the server
#3

My bad, I said before that it freezes at "Please Wait...", but I realised that I commented the lines after "Please Wait...". These are the lines
pawn Код:
GetPlayerName(playerid, plname, sizeof(plname)); //line 3342
    format(string, sizeof(string), "users/%s.ini", plname);
    SendClientMessage(playerid, COLOR_YELLOW2, "Please wait...");
    if(fexist(string))
    {
        gPlayerAccount[playerid] = 1;
        SendClientMessage(playerid, COLOR_YELLOW2, "Immigration: You are a registered citizen of San Andreas.");
        SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Use /login <password> to log in to your game account.");*/
        return 1;
    }
    else
    {
        gPlayerAccount[playerid] = 0;
        SendClientMessage(playerid,COLOR_YELLOW2,"Immigration: Please supply the necessary immigration documents by typing /register <password>");
        return 1;
    }
    MySQLCheckConnection();

    // Check if the account exists
    new sqlaccountstatus = MySQLCheckAccount(plname);
    if(sqlaccountstatus != 0)
    {
        // Check if the account is locked
        if (MySQLCheckAccountLocked(sqlaccountstatus) != 0)
        {
            SendClientMessage(playerid, COLOR_LIGHTRED, "This account has been locked and cannot be accessed. Please contact an admin.");
            Kick(playerid);
            return 0;
        }
        gPlayerAccount[playerid] = 1;
        PlayerInfo[playerid][pSQLID] = sqlaccountstatus;
    }
    else
    {
        gPlayerAccount[playerid] = 0;
    }
    return 1;
} //line 3479
All the lines after "Please Wait..." were commented, but after removing that and compiling it, these errors show
Код:
D:\Users\Omar\Desktop\TJ Rooney's Server Files\gamemodes\AllStarRoleplay.pwn(3449) : error 029: invalid expression, assumed zero
D:\Users\Omar\Desktop\TJ Rooney's Server Files\gamemodes\AllStarRoleplay.pwn(3449 -- 3450) : error 029: invalid expression, assumed zero
D:\Users\Omar\Desktop\TJ Rooney's Server Files\gamemodes\AllStarRoleplay.pwn(3450) : warning 215: expression has no effect
D:\Users\Omar\Desktop\TJ Rooney's Server Files\gamemodes\AllStarRoleplay.pwn(3458) : error 017: undefined symbol "MySQLCheckConnection"
D:\Users\Omar\Desktop\TJ Rooney's Server Files\gamemodes\AllStarRoleplay.pwn(3461) : error 017: undefined symbol "MySQLCheckAccount"
D:\Users\Omar\Desktop\TJ Rooney's Server Files\gamemodes\AllStarRoleplay.pwn(3465) : error 017: undefined symbol "MySQLCheckAccountLocked"
D:\Users\Omar\Desktop\TJ Rooney's Server Files\gamemodes\AllStarRoleplay.pwn(3472) : error 017: undefined symbol "pSQLID"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply


Messages In This Thread
Can't connect to the server - by Red_Dragon. - 19.05.2013, 23:16
Re: Can't connect to the server - by Scrillex - 19.05.2013, 23:35
Re: Can't connect to the server - by Red_Dragon. - 19.05.2013, 23:49
Re: Can't connect to the server - by BatmanAndRobin - 19.05.2013, 23:54
Re: Can't connect to the server - by Scrillex - 20.05.2013, 00:12
Re: Can't connect to the server - by Red_Dragon. - 21.05.2013, 21:37
Re: Can't connect to the server - by Jstylezzz - 21.05.2013, 21:43
Re: Can't connect to the server - by Red_Dragon. - 21.05.2013, 22:10
Re: Can't connect to the server - by Bigbb12f - 22.05.2013, 09:37
Re: Can't connect to the server - by Red_Dragon. - 23.05.2013, 16:37

Forum Jump:


Users browsing this thread: 2 Guest(s)