19.05.2013, 23:49
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
All the lines after "Please Wait..." were commented, but after removing that and compiling it, these errors show
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
Код:
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.