Hallo allerseits... Im Moment gibt es noch viele Probleme z.B. das der server wenn manche leute darauf sind, ungefähr 25 Zeilen debug ausspuckt und dann crasht...
Kann mir villeicht mal jemand sagen was die ganzen Errors seit dem connecten zu sagen haben?
[14:06:33] KanameKuran has logged in.
[14:06:33] [debug] Run time error 4: "Array index out of bounds"
[14:06:33] [debug] Accessing element at index 65535 past array upper bound 499
[14:06:33] [debug] AMX backtrace:
[14:06:33] [debug] #0 0005a834 in public OnPlayerDeath (playerid=1, killerid=65535, reason=255) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:9733
[14:06:33] [death] KanameKuran died 255
[14:07:08] [debug] Run time error 4: "Array index out of bounds"
[14:07:08] [debug] Accessing element at index 7 past array upper bound 6
[14:07:08] [debug] AMX backtrace:
[14:07:08] [debug] #0 0001e860 in public IsAnFracCar (playerid=0) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:5712
[14:07:08] [debug] #1 0007a57c in public OnPlayerStateChange (playerid=0, newstate=2, oldstate=1) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:13418
[14:07:35] Incoming connection: ***
[14:07:35] [join] Yukichan has joined the server (***)
[14:07:39] Wetter ID: 19
[14:08:09] Yukichan has logged in.
[14:08:09] [debug] Run time error 4: "Array index out of bounds"
[14:08:09] [debug] Accessing element at index 65535 past array upper bound 499
[14:08:09] [debug] AMX backtrace:
[14:08:09] [debug] #0 0005a834 in public OnPlayerDeath (playerid=2, killerid=65535, reason=255) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:9733
[14:08:09] [death] Yukichan died 255
[14:08:18] Incoming connection: ***
[14:08:19] [join] [YnL]XeNo has joined the server (***)
[14:08:27] [YnL]XeNo has logged in.
[14:08:42] [chat] [gamerdeutsch]: hi
[14:08:55] Incoming connection: ***
[14:08:55] [join] [YnL]iHzJ has joined the server (***)
[14:09:26] [debug] Run time error 4: "Array index out of bounds"
[14:09:26] [debug] Accessing element at index 7 past array upper bound 6
[14:09:26] [debug] AMX backtrace:
[14:09:26] [debug] #0 0001e860 in public IsAnFracCar (playerid=0) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:5712
[14:09:26] [debug] #1 0007a57c in public OnPlayerStateChange (playerid=0, newstate=2, oldstate=1) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:13418
[14:09:29] [MySQL] Error (0): Function: mysql_fetch_field could not find field name: "OParkR".
[14:09:29] [MySQL] Error (0): Function: mysql_fetch_field could not find field name: "OParkR".
[14:09:30] [debug] Run time error 4: "Array index out of bounds"
[14:09:30] [debug] Accessing element at index 7 past array upper bound 6
[14:09:30] [debug] AMX backtrace:
[14:09:30] [debug] #0 0001e860 in public IsAnFracCar (playerid=1) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:5712
[14:09:30] [debug] #1 0007a57c in public OnPlayerStateChange (playerid=1, newstate=2, oldstate=1) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:13418
[14:10:00] [debug] Run time error 4: "Array index out of bounds"
[14:10:00] [debug] Accessing element at index 7 past array upper bound 6
[14:10:00] [debug] AMX backtrace:
[14:10:00] [debug] #0 0001e860 in public IsAnFracCar (playerid=1) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:5712
[14:10:00] [debug] #1 0007a57c in public OnPlayerStateChange (playerid=1, newstate=2, oldstate=1) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:13418
[14:10:04] [part] gamerdeutsch has left the server (0:1)
[14:10:17] [chat] [[YnL]XeNo]: d
[14:10:51] [YnL]XeNo hat [YnL]iHzJ zu sich geportet.
[14:11:52] [debug] Run time error 4: "Array index out of bounds"
[14:11:52] [debug] Accessing element at index 7 past array upper bound 6
[14:11:52] [debug] AMX backtrace:
[14:11:52] [debug] #0 0001e860 in public IsAnFracCar (playerid=2) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:5712
[14:11:52] [debug] #1 0007a57c in public OnPlayerStateChange (playerid=2, newstate=2, oldstate=1) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:13418
[14:11:55] [debug] Run time error 4: "Array index out of bounds"
[14:11:55] [debug] Accessing element at index 7 past array upper bound 6
[14:11:55] [debug] AMX backtrace:
[14:11:55] [debug] #0 0001e860 in public IsAnFracCar (playerid=2) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:5712
[14:11:55] [debug] #1 0007a57c in public OnPlayerStateChange (playerid=2, newstate=2, oldstate=1) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:13418
[14:12:06] [debug] Server crashed while executing 1.amx
[14:12:06] [debug] AMX backtrace:
[14:12:06] [debug] #0 native fclose () [0809a900] from samp1656_2705
[14:12:06] [debug] #1 003b3d88 in FB_dini_Create (filename[]=@0x0068f3a8 "") at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:80156
[14:12:06] [debug] #2 003a952c in TBan (pID=4, bFB_Time=15) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:78891
[14:12:06] [debug] #3 00184cf8 in public OnPlayerLogin (playerid=4, password[]=@0x006887bc "") at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:26436
[14:12:06] [debug] #4 003820d4 in public OnDialogResponse (playerid=4, dialogid=0, response=1, listitem=-1, inputtext[]=@0x006887bc "") at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:74868
[14:12:06] [debug] Native backtrace:
[14:12:06] [debug] #0 f67ec4ad in crashdetect::PrintNativeBacktrace () from plugins/crashdetect.so
[14:12:06] [debug] #1 f67eebbc in crashdetect::Crash () from plugins/crashdetect.so
[14:12:06] [debug] #2 f67f3d4e in ?? () from plugins/crashdetect.so
[14:12:06] [debug] #3 f76e1400 in ?? ()
[14:12:06] [debug] #4 0809a914 in ?? () from ./samp1656_2705
[14:12:06] [debug] #5 08093c94 in ?? () from ./samp1656_2705
[14:12:06] [debug] #6 f67eb9bf in crashdetect::HandleAmxCallback () from plugins/crashdetect.so
[14:12:06] [debug] #7 f67f29a5 in ?? () from plugins/crashdetect.so
[14:12:06] [debug] #8 f67f5f47 in amx_Exec () from plugins/crashdetect.so
[14:12:06] [debug] #9 f67ebb2b in crashdetect::HandleAmxExec () from plugins/crashdetect.so
[14:12:06] [debug] #10 f67f2b6e in ?? () from plugins/crashdetect.so
[14:12:06] [debug] #11 080ae33f in ?? () from ./samp1656_2705
[14:12:06] [debug] #12 080b97da in ?? () from ./samp1656_2705
[14:12:06] [debug] #13 08071ae8 in ?? () from ./samp1656_2705
[14:12:06] [debug] #14 08071be2 in ?? () from ./samp1656_2705
[14:12:06] [debug] #15 0807ba00 in ?? () from ./samp1656_2705
[14:12:06] [debug] #16 080b59ad in ?? () from ./samp1656_2705
[14:12:06] [debug] #17 080b5b42 in ?? () from ./samp1656_2705
[14:12:06] [debug] #18 080b1453 in ?? () from ./samp1656_2705
[14:12:06] [debug] #19 f7453ca6 in __libc_start_main () from /lib32/libc.so.6
[14:12:06] [debug] #20 0804b521 in ?? () from ./samp1656_2705
Ich hoffe mir kann/möchte jemand helfen.
MFG.
Crashdetect Code entschlüsseln?
- Anker.
- Geschlossen
- Erledigt
-
-
Der Fehler liegt in deinem Script im Callback OnPlayerDeath.
Wahrscheinlich machst du da irgendwas mit "killerid", jedoch fragst du nicht ab, ob diese INVALID_PLAYER_ID ist (INVALID_PLAYER_ID ist 65535, MAX_PLAYERS ist 500,
deswegen kommt die Array Index out of Bounds Meldung).LG
-
erstmal danke für deine sschnelle Antwort!
Ich gucke erstmal im Script und versuche es zu beheben. Aber ist das der einzige Fehler?
MFG.
//E die Zeile ist
killerteam = gTeam[killerid];
könnte ich nicht thoretisch
if(killerid == INVALID_PLAYER_ID)
{
return 0;
}
else
{
killerteam = gTeam[killerid];
}So machen?
MFG. -
Nur so nebenbei, man muss den Code ja nicht entschlüsseln, sondern nur auslesen.
Also nicht durch die ganzen Adressen verwirren lassen. -
Ich habe das nur so gesagt weil ich damit nichts anfangen kann
MFG. -
Was ich jetzt in dem Log gefunden habe ist das du keine Zeile in der Datenbank mit "OParkR" hast, falls du das bereits hast schau mal ob das in der richtigen Tabelle ist.
Code[14:09:29] [MySQL] Error (0): Function: mysql_fetch_field could not find field name: "OParkR". [14:09:29] [MySQL] Error (0): Function: mysql_fetch_field could not find field name: "OParkR".
Hier müsstest du die jeweiligen Zeilen Posten ist aber der gleiche Fehler wie bei OnPlayerDeath:Code[14:09:30] [debug] Run time error 4: "Array index out of bounds" [14:09:30] [debug] Accessing element at index 7 past array upper bound 6 [14:09:30] [debug] AMX backtrace: [14:09:30] [debug] #0 0001e860 in public IsAnFracCar (playerid=1) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:5712 [14:09:30] [debug] #1 0007a57c in public OnPlayerStateChange (playerid=1, newstate=2, oldstate=1) at C:\Users\Lennart\Desktop\City of Raluno Script\gamemodes\1.pwn:13418
-
//5712
if(carid == NewsVehs[v])
{
if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
//Die Andere
if(newstate == PLAYER_STATE_DRIVER)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Benutze die 'Rechte STRG' Taste um den Motor zu Starten, oder /motor!");
IsAnFracCar(playerid);
}
}
Nein diese Tabelle besteht nicht, aber ist deshalb der Server gecrasht?
MFG. -
Nein diese Tabelle besteht nicht, aber ist deshalb der Server gecrasht?
MFG.
Du hast mich glaube ich Falsch verstanden ich meinte ob die Zeile in der richtigen Tabelle eingetragen ist, da diese wahrscheinlich für die Fraktion Autos benötigt wird, deshalb eine neue Zeile in der Tabelle für die Fraktion Autos erstellen mit dem Namen "OParkR" falls diese nicht bereits existiert oder schau mal alle Tabellen durch ob irgendwo eine Zeile mit "OParkR" existiert und von so etwas müsste eigentlich der Server nicht Crashen es könnte aber dazu beitragen.Könntest du von Newsveh[v] etwas mehr Code von vorher und nachher Posten und könntest du bitte IsAnFracCar(playerid) zeigen?
-
Function IsAnFracCar(playerid)
{
new carid = GetPlayerVehicleID(playerid);
if(IsPlayerConnected(playerid))
{
for(new v=0; v<MAX_VEHICLES; v++)
{
if(carid == PolizeiVehs[v])
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == FBIVehs[v])
{
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == ArmyVehs[v])
{
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == MedVehs[v])
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == LCNVehs[v])
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == YakuzaVehs[v])
{
if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == PraesiVehs[v])
{
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == HitmanVehs[v])
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == NewsVehs[v])
{
if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == FahrschulVehs[v])
{
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == fastspeedVehs[v])
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == fastspeedVehs[v])
{
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == GroveVehs[v])
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == BallasVehs[v])
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == LSBCVehs[v])
{
if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == VagosVehs[v])
{
if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == AztecasVehs[v])
{
if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == BanditosVehs[v])
{
if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == RSVehs[v])
{
if(PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == TerrorVehs[v])
{
if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == WheelVehs[v])
{
if(PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == FeuerVehs[v])
{
if(PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == RMVehs[v])
{
if(PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
if(carid == oAmtVehs[v])
{
if(PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24) { return 1; }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Du hast keinen Schlüssel für dieses Auto.");
}
return 1;
}
}
}
return 1;
}
Das Newsveh ist in der funktion IsAnFrakCar.
Der Fehler mit MySql ist nun unwichtig. Diesen werde ich fixxen.
MFG.
//E jemand noch ne Idee? -
breadfish.de
Hat das Thema geschlossen.