04.10.2015, 05:15
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?
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.
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; }
This is the server error i get. Its almost as if the gamemode loads then it goes into grand larc.
Код:
[01:14:50] [debug] Run time error 6: "Invalid instruction" [01:14:50] [debug] Unknown opcode 0x0 at address 0x00000004 [01:14:50] [debug] AMX backtrace: [01:14:50] [debug] #0 00000004 in public OnLoginAttempt () [01:17:13] [connection] 112.198.64.70:18257 requests connection cookie. [01:17:14] Incoming connection: 112.198.64.70:18257 id: 1 [01:17:14] [debug] Run time error 20: "Invalid index parameter (bad entry point)" [01:17:15] [join] Mini_Ladd has joined the server (1:112.198.64.70) [01:17:21] [debug] Run time error 6: "Invalid instruction" [01:17:21] [debug] Unknown opcode 0x0 at address 0x00000004 [01:17:21] [debug] AMX backtrace: [01:17:21] [debug] #0 00000004 in public OnLoginAttempt ()