Beiträge von Shanon

    Meine Methode:


    3 neue Variablen und einen forward

    new IsPlayerAFK[MAX_PLAYERS];
    new GoAFKTimer[MAX_PLAYERS];
    new Float:PlayerPos[MAX_PLAYERS][6];


    forward AFKTimer();


    OnGameModeInit:



    SetTimer("AFKTimer", 80000, 1);


    OnPlayerDisconnect:



    KillTimer(GoAFKTimer[playerid]);


    Der Timer:



    public AFKTimer()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) && PlayerInfo[i][pEingeloggt] == 1 && !IsPlayerNPC(i))//ggf. an dein Script anpassen
    {
    GetPlayerPos(i, PlayerPos[i][0], PlayerPos[i][1], PlayerPos[i][2]);
    if(PlayerPos[i][0] == PlayerPos[i][3] && PlayerPos[i][1] == PlayerPos[i][4] && PlayerPos[i][2] == PlayerPos[i][5])
    {
    if(IsPlayerAFK[i] == 0)
    {
    IsPlayerAFK[i] = 1;
    //Und was noch passieren sollte SendClientMesssage usw...
    }
    }
    PlayerPos[i][3] = PlayerPos[i][0];
    PlayerPos[i][4] = PlayerPos[i][1];
    PlayerPos[i][5] = PlayerPos[i][2];
    }
    }
    }


    MFG,
    Shanon!

    Guten Tag!


    Mein Server stürzt mehrmals am Tag durch einen Befehl ab. Sollte es der Befehl sein, der dort angezeigt wird, passiert dies aber nicht immer. Das Komische: crashdetect gibt "playerid=32" aus, obwohl ich nichtmal eine Spieler ID mit 32 zu dem Zeitpunkt habe. Doch sollte er abstürzen, durch den Befehl, was hat das mit float zu tuhen?


    Die Fehlermeldung:



    [14:05:51] [debug] AMX backtrace:
    [14:05:51] [debug] #0 0000006e in Float:operator*(Float:,_:) (Float:oper1=0.00000, oper2=-1263159297, ... <1 variable argument>) at C:\Users\Kevin\Desktop\TNS Reallife\pawno\include\float.inc:112
    [14:05:51] [debug] #1 0009cde4 in dcmd_d (playerid=32, params[]=@0x00000056 "", ... <23 variable arguments>) at C:\Users\Kevin\Desktop\Backups\TNS-Reallife Script\Backup v0.5\tns.pwn:9910
    [14:05:51] [debug] #2 0000006e in Float:operator*(Float:,_:) (Float:oper1=40564819207303340847894502572032.00000, oper2=1912602624, ... <348127230 variable arguments>) at C:\Users\Kevin\Desktop\TNS Reallife\pawno\include\float.inc:112
    [14:05:51] [debug] Native backtrace:
    [14:05:51] [debug] #0 f67a35f9 in crashdetect::PrintNativeBacktrace () from plugins/crashdetect.so
    [14:05:51] [debug] #1 f67a5c7c in crashdetect::Crash () from plugins/crashdetect.so
    [14:05:51] [debug] #2 f67ab123 in ?? () from plugins/crashdetect.so
    [14:05:51] [debug] #3 f76e3400 in ?? ()
    [14:05:51] [debug] #4 f67a6022 in crashdetect::HandleAmxExec () from plugins/crashdetect.so
    [14:05:51] [debug] #5 f67a9d1b in ?? () from plugins/crashdetect.so
    [14:05:51] [debug] #6 0806f902 in ?? () from ./samp1111_1276
    [14:05:51] [debug] #7 0807fe6c in ?? () from ./samp1111_1276
    [14:05:51] [debug] #8 080adbe1 in ?? () from ./samp1111_1276
    [14:05:51] [debug] #9 080adcd2 in ?? () from ./samp1111_1276
    [14:05:51] [debug] #10 080b79c0 in ?? () from ./samp1111_1276
    [14:05:51] [debug] #11 0807d78d in ?? () from ./samp1111_1276
    [14:05:51] [debug] #12 0807d962 in ?? () from ./samp1111_1276
    [14:05:51] [debug] #13 08077c23 in ?? () from ./samp1111_1276
    [14:05:51] [debug] #14 f7455ca6 in __libc_start_main () from /lib32/libc.so.6
    [14:05:51] [debug] #15 0804b4c1 in __gxx_personality_v0 () from ./samp1111_1276


    Der Befehl:



    dcmd_d(playerid,params[])
    {
    if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid, COLOR_GRAU, "Du bist gemuted!");
    if(IsGefesselt[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAU, "Da du gefesselt bist, kommst du nicht an dein Funkgerät ran!");
    new text[84], string[128];
    if(sscanf(params,"s",text))
    {
    SendClientMessage(playerid,COLOR_GRAU,"Benutze: /department [Text]");
    return 1;
    }
    if(SEKDuty[playerid] == 1)
    {
    if(PlayerInfo[playerid][pSEKLevel] == 1) { format(string, sizeof(string), "SEK Insctructor %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pSEKLevel] == 2) { format(string, sizeof(string), "SEK Operator %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pSEKLevel] == 3) { format(string, sizeof(string), "SEK Sub Kommander %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pSEKLevel] == 4) { format(string, sizeof(string), "SEK Kommander %s: %s, over.", PlayerInfo[playerid][pName], text); }
    SendRadioMessage(1, COLOR_DEPARTMENT, string);
    SendRadioMessage(2, COLOR_DEPARTMENT, string);
    SendRadioMessage(3, COLOR_DEPARTMENT, string);
    SendRadioMessage(4, COLOR_DEPARTMENT, string);
    SendRadioMessage(5, COLOR_DEPARTMENT, string);
    SendRadioMessage(6, COLOR_DEPARTMENT, string);
    return 1;
    }
    else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
    if(PlayerInfo[playerid][pRang] == 1) { format(string, sizeof(string), "Cadet %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 2) { format(string, sizeof(string), "Officer %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 3) { format(string, sizeof(string), "Sergeant %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 4) { format(string, sizeof(string), "Lieutenannt %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 5) { format(string, sizeof(string), "Captain %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 6) { format(string, sizeof(string), "Chief %s: %s, over.", PlayerInfo[playerid][pName], text); }
    SendRadioMessage(1, COLOR_DEPARTMENT, string);
    SendRadioMessage(2, COLOR_DEPARTMENT, string);
    SendRadioMessage(3, COLOR_DEPARTMENT, string);
    SendRadioMessage(4, COLOR_DEPARTMENT, string);
    SendRadioMessage(5, COLOR_DEPARTMENT, string);
    SendRadioMessage(6, COLOR_DEPARTMENT, string);
    return 1;
    }
    else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    if(PlayerInfo[playerid][pRang] == 1) { format(string, sizeof(string), "New Agent %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 2) { format(string, sizeof(string), "Special Agent %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 3) { format(string, sizeof(string), "Supervisory Special Agent %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 4) { format(string, sizeof(string), "Special Agent in Charge %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 5) { format(string, sizeof(string), "Assistens Direktor %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 6) { format(string, sizeof(string), "Direktor %s: %s, over.", PlayerInfo[playerid][pName], text); }
    SendRadioMessage(1, COLOR_DEPARTMENT, string);
    SendRadioMessage(2, COLOR_DEPARTMENT, string);
    SendRadioMessage(3, COLOR_DEPARTMENT, string);
    SendRadioMessage(4, COLOR_DEPARTMENT, string);
    SendRadioMessage(5, COLOR_DEPARTMENT, string);
    SendRadioMessage(6, COLOR_DEPARTMENT, string);
    return 1;
    }
    else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    if(PlayerInfo[playerid][pRang] == 1) { format(string, sizeof(string), "Rekrut %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 2) { format(string, sizeof(string), "Soldat %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 3) { format(string, sizeof(string), "Gefreiter %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 4) { format(string, sizeof(string), "Feldwebel %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 5) { format(string, sizeof(string), "Oberst %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 6) { format(string, sizeof(string), "General %s: %s, over.", PlayerInfo[playerid][pName], text); }
    SendRadioMessage(1, COLOR_DEPARTMENT, string);
    SendRadioMessage(2, COLOR_DEPARTMENT, string);
    SendRadioMessage(3, COLOR_DEPARTMENT, string);
    SendRadioMessage(4, COLOR_DEPARTMENT, string);
    SendRadioMessage(5, COLOR_DEPARTMENT, string);
    SendRadioMessage(6, COLOR_DEPARTMENT, string);
    return 1;
    }
    else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
    {
    if(PlayerInfo[playerid][pRang] == 1) { format(string, sizeof(string), "Praktikant %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 2) { format(string, sizeof(string), "Rettungshelfer %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 3) { format(string, sizeof(string), "Rettungssanitäter %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 4) { format(string, sizeof(string), "Notarzt %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 5) { format(string, sizeof(string), "Oberarzt %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 6) { format(string, sizeof(string), "Chefarzt %s: %s, over.", PlayerInfo[playerid][pName], text); }
    SendRadioMessage(1, COLOR_DEPARTMENT, string);
    SendRadioMessage(2, COLOR_DEPARTMENT, string);
    SendRadioMessage(3, COLOR_DEPARTMENT, string);
    SendRadioMessage(4, COLOR_DEPARTMENT, string);
    SendRadioMessage(5, COLOR_DEPARTMENT, string);
    SendRadioMessage(6, COLOR_DEPARTMENT, string);
    return 1;
    }
    else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
    {
    if(PlayerInfo[playerid][pRang] == 1) { format(string, sizeof(string), "Praktikant %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 2) { format(string, sizeof(string), "Auszubildender %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 3) { format(string, sizeof(string), "Mitarbeiter %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 4) { format(string, sizeof(string), "Personalchef %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 5) { format(string, sizeof(string), "Manager %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 6) { format(string, sizeof(string), "Vorsitzender %s: %s, over.", PlayerInfo[playerid][pName], text); }
    SendRadioMessage(1, COLOR_DEPARTMENT, string);
    SendRadioMessage(2, COLOR_DEPARTMENT, string);
    SendRadioMessage(3, COLOR_DEPARTMENT, string);
    SendRadioMessage(4, COLOR_DEPARTMENT, string);
    SendRadioMessage(5, COLOR_DEPARTMENT, string);
    SendRadioMessage(6, COLOR_DEPARTMENT, string);
    return 1;
    }
    else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
    if(PlayerInfo[playerid][pRang] == 1) { format(string, sizeof(string), "Außenminister %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 2) { format(string, sizeof(string), "Verkehrsminister %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 3) { format(string, sizeof(string), "Finanzminister %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 4) { format(string, sizeof(string), "Verteidigungsminister %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 5) { format(string, sizeof(string), "Bundespräsident %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 6) { format(string, sizeof(string), "Bundeskanzler %s: %s, over.", PlayerInfo[playerid][pName], text); }
    SendRadioMessage(1, COLOR_DEPARTMENT, string);
    SendRadioMessage(2, COLOR_DEPARTMENT, string);
    SendRadioMessage(3, COLOR_DEPARTMENT, string);
    SendRadioMessage(4, COLOR_DEPARTMENT, string);
    SendRadioMessage(5, COLOR_DEPARTMENT, string);
    SendRadioMessage(6, COLOR_DEPARTMENT, string);
    return 1;
    }
    else return SendClientMessage(playerid, COLOR_GRAU, "Du bist kein Mitglieds des Department Teams!");
    }


    Ich hoffe, mir kann jemand helfen!


    -------------------------------------------

    Mit freundlichen Grüßen,
    Shanon aka. Scriptor!

    Der Befehl ist aber ein Chat :O



    dcmd_d(playerid,params[])
    {
    if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid, COLOR_GRAU, "Du bist gemuted!");
    if(IsGefesselt[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAU, "Da du gefesselt bist, kommst du nicht an dein Funkgerät ran!");
    new text[84], string[128];
    if(sscanf(params,"s",text))
    {
    SendClientMessage(playerid,COLOR_GRAU,"Benutze: /department [Text]");
    return 1;
    }
    if(SEKDuty[playerid] == 1)
    {
    if(PlayerInfo[playerid][pSEKLevel] == 1) { format(string, sizeof(string), "SEK Insctructor %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pSEKLevel] == 2) { format(string, sizeof(string), "SEK Operator %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pSEKLevel] == 3) { format(string, sizeof(string), "SEK Sub Kommander %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pSEKLevel] == 4) { format(string, sizeof(string), "SEK Kommander %s: %s, over.", PlayerInfo[playerid][pName], text); }
    SendRadioMessage(1, COLOR_DEPARTMENT, string);
    SendRadioMessage(2, COLOR_DEPARTMENT, string);
    SendRadioMessage(3, COLOR_DEPARTMENT, string);
    SendRadioMessage(4, COLOR_DEPARTMENT, string);
    SendRadioMessage(5, COLOR_DEPARTMENT, string);
    SendRadioMessage(6, COLOR_DEPARTMENT, string);
    return 1;
    }
    else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
    if(PlayerInfo[playerid][pRang] == 1) { format(string, sizeof(string), "Cadet %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 2) { format(string, sizeof(string), "Officer %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 3) { format(string, sizeof(string), "Sergeant %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 4) { format(string, sizeof(string), "Lieutenannt %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 5) { format(string, sizeof(string), "Captain %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 6) { format(string, sizeof(string), "Chief %s: %s, over.", PlayerInfo[playerid][pName], text); }
    SendRadioMessage(1, COLOR_DEPARTMENT, string);
    SendRadioMessage(2, COLOR_DEPARTMENT, string);
    SendRadioMessage(3, COLOR_DEPARTMENT, string);
    SendRadioMessage(4, COLOR_DEPARTMENT, string);
    SendRadioMessage(5, COLOR_DEPARTMENT, string);
    SendRadioMessage(6, COLOR_DEPARTMENT, string);
    return 1;
    }
    else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
    {
    if(PlayerInfo[playerid][pRang] == 1) { format(string, sizeof(string), "Praktikant %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 2) { format(string, sizeof(string), "Rettungshelfer %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 3) { format(string, sizeof(string), "Rettungssanitäter %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 4) { format(string, sizeof(string), "Notarzt %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 5) { format(string, sizeof(string), "Oberarzt %s: %s, over.", PlayerInfo[playerid][pName], text); }
    else if(PlayerInfo[playerid][pRang] == 6) { format(string, sizeof(string), "Chefarzt %s: %s, over.", PlayerInfo[playerid][pName], text); }
    SendRadioMessage(1, COLOR_DEPARTMENT, string);
    SendRadioMessage(2, COLOR_DEPARTMENT, string);
    SendRadioMessage(3, COLOR_DEPARTMENT, string);
    SendRadioMessage(4, COLOR_DEPARTMENT, string);
    SendRadioMessage(5, COLOR_DEPARTMENT, string);
    SendRadioMessage(6, COLOR_DEPARTMENT, string);
    return 1;
    }
    else return SendClientMessage(playerid, COLOR_GRAU, "Du bist kein Mitglieds des Department Teams!");
    }


    Die Zeile liegt aber bei einem ganz anderen befehl...



    dcmd_scheinezeigen(playerid,params[])
    {
    new giveplayerid, text[9][64], string[1048];
    if(sscanf(params,"d",giveplayerid))
    {
    SendClientMessage(playerid,COLOR_GRAU,"Benutze: /scheinezeigen [Spieler ID]");
    return 1;
    }
    if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_GRAU, "Unbekannte Spieler ID!");
    if(giveplayerid == playerid) return SendClientMessage(playerid, COLOR_GRAU, "Um deine Licensen einzusehen, Tippe /scheine!");
    if(!ProxDetectorS(5, playerid, giveplayerid)) return SendClientMessage(playerid, COLOR_GRAU, "Dieser Spieler ist nicht in deiner Nähe!");
    format(string, sizeof(string), "|________________Scheine von %s________________|", PlayerInfo[playerid][pName]);
    SendClientMessage(giveplayerid, COLOR_BLUE, string);
    if(PlayerInfo[playerid][pAutoLic]) { text[0] = "{58FA58}Vorhanden"; } else { text[0] = "{FE2E2E}Nicht Vorhanden"; }
    if(PlayerInfo[playerid][pBikeLic]) { text[1] = "{58FA58}Vorhanden"; } else { text[1] = "{FE2E2E}Nicht Vorhanden"; }
    if(PlayerInfo[playerid][pFlugLic]) { text[2] = "{58FA58}Vorhanden"; } else { text[2] = "{FE2E2E}Nicht Vorhanden"; }
    if(PlayerInfo[playerid][pBootLic]) { text[3] = "{58FA58}Vorhanden"; } else { text[3] = "{FE2E2E}Nicht Vorhanden"; }
    if(PlayerInfo[playerid][pLKWLic]) { text[4] = "{58FA58}Vorhanden"; } else { text[4] = "{FE2E2E}Nicht Vorhanden"; }
    if(PlayerInfo[playerid][pWaffenLic]) { text[5] = "{58FA58}Vorhanden"; } else { text[5] = "{FE2E2E}Nicht Vorhanden"; }
    if(PlayerInfo[playerid][pPassportLS]) { text[6] = "{58FA58}Vorhanden"; } else { text[6] = "{FE2E2E}Nicht Vorhanden"; }
    if(PlayerInfo[playerid][pPassportSF]) { text[7] = "{58FA58}Vorhanden"; } else { text[7] = "{FE2E2E}Nicht Vorhanden"; }
    if(PlayerInfo[playerid][pPassportLV]) { text[8] = "{58FA58}Vorhanden"; } else { text[8] = "{FE2E2E}Nicht Vorhanden"; }
    format(string, sizeof(string), "{FFFFFF}Führerschein: %s {FFFFFF}| Motorradschein: %s", text[0], text[1]);
    SendClientMessage(giveplayerid, COLOR_WHITE, string);
    format(string, sizeof(string), "{FFFFFF}Flugschein %s {FFFFFF}| Bootschein: %s", text[2], text[3]);
    SendClientMessage(giveplayerid, COLOR_WHITE, string);
    format(string, sizeof(string), "{FFFFFF}LKW Schein: %s {FFFFFF}| Waffenschein: %s", text[4], text[5]); //Zeile 9503
    SendClientMessage(giveplayerid, COLOR_WHITE, string);
    format(string, sizeof(string), "{FFFFFF}Los Santos Pass: %s", text[6]);
    SendClientMessage(giveplayerid, COLOR_WHITE, string);
    format(string, sizeof(string), "{FFFFFF}San Fierro Pass: %s", text[7]);
    SendClientMessage(giveplayerid, COLOR_WHITE, string);
    format(string, sizeof(string), "{FFFFFF}Las Venturas Pass: %s", text[8]);
    SendClientMessage(giveplayerid, COLOR_WHITE, string);
    format(string, sizeof(string), "%s hat %s seine Scheine gezeigt", PlayerInfo[playerid][pName], PlayerInfo[giveplayerid][pName]);
    ProxDetector(15.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
    return 1;
    }


    Mhhh :D

    Guten tag!


    In letzter Zeit crasht mein Server durch folgende Fehlemerldung von crashedetect:


    [18:44:10] [debug] Run time error 4: "Array index out of bounds"
    [18:44:10] [debug] Accessing element at index 115 past array upper bound 74
    [18:44:10] [debug] AMX backtrace:
    [18:44:10] [debug] #0 00094160 in dcmd_d (playerid=115, params[]=@0x00000076 "", ... <27 variable arguments>) at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:9503
    [18:44:10] [debug] #1 00000061 in Float:operator*(Float:,_:) (Float:oper1=0.00000, oper2=109, ... <23 variable arguments>) at C:\Users\Kevin\Desktop\TNS Reallife\pawno\include\float.inc:112


    Ich weiß weder warum, noch wie. Meine User können mir leider auch nichts berichten.


    Kann mir jemand helfen?


    MFG,
    Scriptor!

    Jo, kann ich auch^^


    Es geht mir darum, das er hier einen TextLabel präsentiert, ob das Funktioniert oder nicht weiß nur er alleine. So einen TextLabel hat hoffe ich jeder in 2 Minuten hin.
    Wenn ichs testen kann oder er ein Video produziert dann kann ich Punkte vergeben.



    PS: Würde da noch ein Pickup hinzufügen, damit man das Geschäft auch von weiten sehen kann, ein "i" oder so.


    MFG,
    Scriptor!

    Ich sitze an diesem Problem schon seit mehreren Wochen, und habe nun hier das erste mal um Hilfe gebeten, werde mich morgen nun nochmal gründlich mit dem Plugin beschäftigen...


    /E: Okay, der Server ist gecrashed mit folgendem Fehler im Log:



    [14:29:36] [debug] Server crashed while executing tns.amx
    [14:29:36] [debug] AMX backtrace:
    [14:29:36] [debug] #0 002477d0 in mysql_SetString (Table[]=@0x001b1a60 "accounts", Field[]=@0x001b1a84 "LastSeen", To[]=@0x0007e9d4 "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\...", Where[]=@0x001b1aa8 "Name", Where2[]=@0x0007dc10 "Guarda_Police") at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:26126
    [14:29:36] [debug] #1 00243c78 in public SavePlayer (playerid=5) at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:25937
    [14:29:36] [debug] #2 0002e8b4 in public Streamer_OnPlayerDisconnect (playerid=5, reason=1) at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:3335
    [14:29:36] [debug] #3 00000a48 in public OnPlayerDisconnect (playerid=5, reason=1) at C:\Users\Kevin\Desktop\TNS Reallife\pawno\include\streamer.inc:321
    [14:29:36] [debug] Native backtrace:


    /E: Dadurch crasht er auch...



    [20:26:13] [debug] Server crashed while executing tns.amx
    [20:26:13] [debug] AMX backtrace:
    [20:26:13] [debug] #0 00246c14 in mysql_SetString (Table[]=@0x001b12b0 "accounts", Field[]=@0x001b12d4 "LastSeen", To[]=@0x0007f81c "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\...", Where[]=@0x001b12f8 "Name", Where2[]=@0x0007ea58 "freakyhero1") at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:26141
    [20:26:13] [debug] #1 002430bc in public SavePlayer (playerid=6) at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:25952
    [20:26:13] [debug] Native backtrace:


    [21:30:18] [debug] Server crashed while executing tns.amx
    [21:30:18] [debug] AMX backtrace:
    [21:30:18] [debug] #0 00246c14 in mysql_SetString (Table[]=@0x001b12b0 "accounts", Field[]=@0x001b12d4 "LastSeen", To[]=@0x000856fc "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\...", Where[]=@0x001b12f8 "Name", Where2[]=@0x00084938 "andrey_lala") at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:26141
    [21:30:18] [debug] #1 002430bc in public SavePlayer (playerid=12) at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:25952
    [21:30:18] [debug] #2 0002e6a0 in public Streamer_OnPlayerDisconnect (playerid=12, reason=1) at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:3335
    [21:30:18] [debug] #3 00000a48 in public OnPlayerDisconnect (playerid=12, reason=1) at C:\Users\Kevin\Desktop\TNS Reallife\pawno\include\streamer.inc:321
    [21:30:18] [debug] Native backtrace:


    [22:08:57] [debug] Server crashed while executing tns.amx
    [22:08:57] [debug] AMX backtrace:
    [22:08:57] [debug] #0 00003928 in __SendClientMessage (playerid=9, color=641859242, string[]=@0x001b6394 "") at C:\Users\Kevin\Desktop\TNS Reallife\pawno\include\AudioHide.inc:61
    [22:08:57] [debug] #1 00118b84 in public ShowStats (playerid=9, targetid=9) at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:15848
    [22:08:57] [debug] #2 00086c40 in dcmd_stats (playerid=9, params[]=@0x0016d5fc " ") at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:8633
    [22:08:57] [debug] #3 000e4810 in public OnPlayerCommandText (playerid=9, cmdtext[]=@0x001b3754 "") at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:12885
    [22:08:57] [debug] Native backtrace:


    Keine ne Idee?


    MFG,
    Scriptor!

    Super, und wenn ich nun den Server auf meinem Linux Server starte, crasht er sofort, obwohl der Server noch nichtmal das Script fertig geladen hat!



    [23:10:58] [debug] Server crashed while executing tns.amx
    [23:10:58] [debug] AMX backtrace:
    [23:10:58] [debug] #0 native fread () [0804f600] from samp1111_1276
    [23:10:58] [debug] #1 00003d48 in function2 () at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:825
    [23:10:58] [debug] #2 00003cd8 in function1 () at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:820
    [23:10:58] [debug] #3 00003c3c in main () at C:\Users\Kevin\Desktop\TNS Reallife\gamemodes\tns.pwn:814
    [23:10:58] [debug] Native backtrace:
    [23:10:58] [debug] #0 f68355f9 in crashdetect::PrintNativeBacktrace () from plugins/crashdetect.so
    [23:10:58] [debug] #1 f6837c7c in crashdetect::Crash () from plugins/crashdetect.so
    [23:10:58] [debug] #2 f683d123 in ?? () from plugins/crashdetect.so
    [23:10:58] [debug] #3 f7775400 in ?? ()
    [23:10:58] [debug] #4 0804ecc0 in ?? () from ./samp1111_1276
    [23:10:58] [debug] #5 0804f723 in ?? () from ./samp1111_1276
    [23:10:58] [debug] #6 080503e4 in ?? () from ./samp1111_1276
    [23:10:58] [debug] #7 f6837f45 in crashdetect::HandleAmxCallback () from plugins/crashdetect.so
    [23:10:58] [debug] #8 f683bce2 in ?? () from plugins/crashdetect.so
    [23:10:58] [debug] #9 f683e77e in amx_Exec () from plugins/crashdetect.so
    [23:10:58] [debug] #10 f6838022 in crashdetect::HandleAmxExec () from plugins/crashdetect.so
    [23:10:58] [debug] #11 f683bd1b in ?? () from plugins/crashdetect.so
    [23:10:58] [debug] #12 0806f27f in ?? () from ./samp1111_1276
    [23:10:58] [debug] #13 0807a9ad in ?? () from ./samp1111_1276
    [23:10:58] [debug] #14 08077bd7 in ?? () from ./samp1111_1276
    [23:10:58] [debug] #15 f74e7ca6 in __libc_start_main () from /lib32/libc.so.6
    [23:10:58] [debug] #16 0804b4c1 in __gxx_personality_v0 () from ./samp1111_1276


    Goldkiller kann ich dich vielleicht über Skype oder ähnlichem Kontaktieren damit wir hier nicht alles vollspamen?


    MFG,
    Scriptor!