Server being weird need help. AMX Backtrace. -
So, i updated the server to BlueG's R8. And prior it was giving me a different error that would bugg the server.
Anyways after the update i narrowed it down to this ... ONLOGINATTEMPT. Is there anyone who can help me?
Код:
public OnLoginAttempt(playerid) {
new rows,fields;
cache_get_data(rows,fields);
new loginattempts = GetPVarInt(playerid,"LoginAttempts");
new msg[128];
if(rows < 1) {
loginattempts++;
if((MAX_LOGIN_ATTEMPTS-loginattempts) <= 0) {
SendClientMessage(playerid, X11_RED,"You have been kicked for entering the incorrect password.");
Kick(playerid);
}
SetPVarInt(playerid,"LoginAttempts",loginattempts);
format(msg,sizeof(msg),"[ERROR]: Incorrect password. You have %d more attempts before you will be kicked.",MAX_LOGIN_ATTEMPTS-loginattempts);
SendClientMessage(playerid, X11_WHITE, msg);
ShowLoginDialog(playerid);
return 1;
}
SendClientMessage(playerid, X11_ORANGE,"Successful login!");
new alevel, id_string[32];
cache_get_row(0,0,id_string);
//`adminlevel`,`newbrank`,`connecttime`,`admintitle`
alevel = strval(id_string);
cache_get_row(0,1,id_string);
SetPVarInt(playerid, "NewbieRank", strval(id_string));
cache_get_row(0,2,id_string);
SetPVarInt(playerid, "ConnectTime", strval(id_string));
cache_get_row(0,3,id_string);
SetPVarString(playerid, "AdminTitle", id_string);
if(alevel != 0) {
format(msg,sizeof(msg),"You are logged in as a %s!",id_string);
SendClientMessage(playerid, X11_WHITE, msg);
SetPVarInt(playerid,"AdminFlags",alevel);
}
cache_get_row(0,1,id_string);
alevel = strval(id_string);
if(alevel != 0) {
SetPVarInt(playerid,"NewbieRank",alevel);
format(msg,sizeof(msg),"You are logged in as a %s",GetNewbieName(playerid));
SendClientMessage(playerid, X11_WHITE, msg);
}
if(GetPVarInt(playerid, "AdminFlags") != 0 || GetPVarInt(playerid, "NewbieRank") != 0) {
adminOnPlayerLogin(playerid);
}
cache_get_row(0,4,id_string); //donate points
alevel = strval(id_string);
SetPVarInt(playerid, "DonatePoints", alevel);
cache_get_row(0,5,id_string); //donate rank
alevel = strval(id_string);
SetPVarInt(playerid, "DonateRank", alevel);
cache_get_row(0,6,id_string); //cookies
alevel = strval(id_string);
SetPVarInt(playerid, "Cookies", alevel);
cache_get_row(0,7,id_string); //ajail release time
alevel = strval(id_string);
if(alevel > 0) {
SetTimerEx("AJail",1000, false, "dds", playerid, alevel, "AJailed");
}
cache_get_row(0,8,id_string);
SetPVarInt(playerid, "NMuteTime", strval(id_string)+gettime());
cache_get_row(0,9,id_string);
SetPVarInt(playerid, "MuteTime", strval(id_string)+gettime());
cache_get_row(0,10,id_string);
SetPVarInt(playerid, "ReportBanned", strval(id_string));
cache_get_row(0,11,id_string);
SetPVarInt(playerid, "AccountFlags", strval(id_string));
cache_get_row(0,12,id_string);
SetPVarInt(playerid, "NumAJails", strval(id_string));
cache_get_row(0,13,id_string);
SetPVarInt(playerid, "NumKicks", strval(id_string));
cache_get_row(0,14,id_string);
SetPVarInt(playerid, "NumBans", strval(id_string));
cache_get_row(0,15,id_string);
new hideval = strval(id_string);
if(hideval != 0)
{
SetPVarInt(playerid, "AdminHidden", hideval);
}
OnPlayerLogin(playerid);
return 1;
}
I am having trouble here..
This is the server error i get. Its almost as if the gamemode loads then it goes into grand larc.
Re: Server being weird need help. AMX Backtrace. -
Simple , Look in your code , It's missing Brackets . (Insert them properly with Changes)
Re: Server being weird need help. AMX Backtrace. -
no its not physically unknown.. Its almost as if the server begins to unload the pawno.
Re: Server being weird need help. AMX Backtrace. -
Re: Server being weird need help. AMX Backtrace. -
You're using WC-RP script...
Re: Server being weird need help. AMX Backtrace. -