Beiträge von ~[INAKTIV]~

    Hey Leute,
    komischer Weise spackt mein Pawn Compiller ab...
    das Script ist ca. 50k lang (ressourcenfreesend -.- aber naja ist net so schlimm)
    vorher hats immer ein wenig gedauert aber jetzt kommt plötzlich :


    Pawn Compiller reagiert nicht mehr und dann crasht der und dann ist die .amx plötzlich 0 Bite groß
    will das Script auf Server hochladen (root) aber es bringt ja nix wenn .amx net geht pls help....


    Problem erst seit ca. 1 h -.-


    mfg

    Hey Leute,
    habe in meinem GM was ungemütliches gefunden -.- vlt. könnt ihr mir ja weiterhelfen......


    C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(57998) : error 033: array must be indexed (variable "x2")
    C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(57998) : warning 213: tag mismatch
    C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(57999) : error 033: array must be indexed (variable "y2")
    C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(57999) : warning 213: tag mismatch
    C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(58004 -- 58007) : error 033: array must be indexed (variable "x2")
    C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(58027 -- 58030) : error 033: array must be indexed (variable "x2")
    C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(58054) : error 033: array must be indexed (variable "x2")
    C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(58300) : error 033: array must be indexed (variable "x2")
    C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(58378) : warning 213: tag mismatch
    C:\Users\Owner\Desktop\Big_Ben\Desktop\Big_Ben\Desktop\New Folder (2)\Server\gamemodes\hor.pwn(58407) : warning 213: tag mismatch


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Hier die Zeilen dazu ..... :


    Function LoadGangZones()
    {
    new arrCoords[8][64];
    new strFromFile2[256];
    new File: file = fopen("gangzones.cfg", io_read);
    if (file)
    {
    new idx;
    while (idx < GangZone_Index)
    {
    fread(file, strFromFile2);
    split(strFromFile2, arrCoords, ',');
    GangZone[idx][x1] = floatstr(arrCoords[0]);
    GangZone[idx][y1] = floatstr(arrCoords[1]);
    GangZone[idx][x2] = floatstr(arrCoords[2]);
    GangZone[idx][y2] = floatstr(arrCoords[3]);
    GangZone[idx][ix] = floatstr(arrCoords[4]);
    GangZone[idx][iy] = floatstr(arrCoords[5]);
    GangZone[idx][iz] = floatstr(arrCoords[6]);
    GangZone[idx][owner] = strval(arrCoords[7]);
    printf("GangZone %d loadad: %f,%f,%f,%f,%f,%f,%f,%d",idx,
    GangZone[idx][x1],
    GangZone[idx][y1],
    GangZone[idx][x2],
    GangZone[idx][y2],
    GangZone[idx][ix],
    GangZone[idx][iy],
    GangZone[idx][iz],
    GangZone[idx][owner]);
    idx++;
    }
    fclose(file);
    }
    return 1;
    }


    Function SaveGangZones()
    {
    new idx;
    new File: file2;
    while (idx < GangZone_Index)
    {
    new coordsstring[256];
    format(coordsstring, sizeof(coordsstring), "%f,%f,%f,%f,%f,%f,%f,%d\n",
    GangZone[idx][x1],
    GangZone[idx][y1],
    GangZone[idx][x2],
    GangZone[idx][y2],
    GangZone[idx][ix],
    GangZone[idx][iy],
    GangZone[idx][iz],
    GangZone[idx][owner]);
    if(idx == 0)
    {
    file2 = fopen("gangzones.cfg", io_write);
    }
    else
    {
    file2 = fopen("gangzones.cfg", io_append);
    }
    fwrite(file2, coordsstring);
    idx++;
    fclose(file2);
    }
    }


    Function CreateGangZones()
    {
    for(new idx; idx < GangZone_Index; idx++)
    {
    GangZone[idx][gzID] = GangZoneCreate(GangZone[idx][x1],GangZone[idx][y1],GangZone[idx][x2],GangZone[idx][y2]);
    }
    }


    Function PlayerGangZonesShow(playerid, yesno)
    {
    if(yesno == 1)
    {
    for(new idx; idx < GangZone_Index; idx++)
    {
    GangZoneShowForPlayer(playerid, GangZone[idx][gzID], GetGangZoneColor(idx));
    }
    }
    else
    {
    for(new idx; idx < GangZone_Index; idx++)
    {
    GangZoneHideForPlayer(playerid, GangZone[idx][gzID]);
    }
    }
    return 1;
    }


    Function GetGangZoneColor(gzid)
    {
    if(GangZone[gzid][owner] == 5)
    {
    return 0x000000DE;
    }
    else if(GangZone[gzid][owner] == 6)
    {
    return 0xD2D2D2DE;
    }
    else if(GangZone[gzid][owner] == 12)
    {
    return 0x000FFF4E;
    }
    else if(GangZone[gzid][owner] == 13)
    {
    return 0x37FF005E;
    }
    else if(GangZone[gzid][owner] == 14)
    {
    return 0xFF00EB5E;
    }
    else if(GangZone[gzid][owner] == 15)
    {
    return 0x6400FF5E;
    }
    else if(GangZone[gzid][owner] == 16)
    {
    return 0xEBFF005E;
    }
    else if(GangZone[gzid][owner] == 17)
    {
    return 0x00FFFA5E;
    }
    else if(GangZone[gzid][owner] == 19)
    {
    return 0xFF00005E;
    }
    else if(GangZone[gzid][owner] == 23)
    {
    return 0xA0A0A05E;
    }
    return 0xFFFFFF5E;
    }


    Function PlayerTakingOverZone(playerid,zoneid)
    {
    new count,job;
    for(new i; i<MAX_PLAYERS;i++)
    {
    if(PlayerInfo[i][pMember] != 0) { job = PlayerInfo[i][pMember]; }
    else if(PlayerInfo[i][pLeader] != 0) { job = PlayerInfo[i][pLeader]; }
    if(GangZone[zoneid][owner] == job && job != 0)
    {
    count++;
    }
    else if(GangZone[zoneid][owner] == 0)
    {
    count = 2;
    }
    }
    if(count >= 2)
    {
    if(Attack[GangZone[zoneid][owner]] != 0)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Diese Gangzone wird schon angegriffen / hat eine Angriffssperre");
    return 1;
    }
    else
    {
    Attack[GangZone[zoneid][owner]] = 1;
    AttackZone[GangZone[zoneid][owner]] = zoneid;
    for(new i; i<MAX_PLAYERS; i++)
    {
    if(PlayerInfo[i][pMember] != 0) { job = PlayerInfo[i][pMember]; }
    else if(PlayerInfo[i][pLeader] != 0) { job = PlayerInfo[i][pLeader]; }
    if(job == GangZone[zoneid][owner] && job != 0)
    {
    SendClientMessage(i, COLOR_WHITE,"{FFFFFF}[::: {FFFFFF}Gangzonenangriff {FFFFFF}:::]");
    SendClientMessage(i, COLOR_RED, "{FFFFFF}Eine Gangzone von euch wird angegriffen, begib dich schnell zum Angriffspunkt!");
    SendClientMessage(i, COLOR_RED, "{FFFFFF}Vertreibe den Angreifer, du hast ca. 5 Minuten Zeit!");
    }
    }
    TakeOverTime[playerid] = 300;
    TakeOver[playerid] = zoneid;
    SendClientMessage(playerid, COLOR_WHITE,"{00FF00}[::: {FFFFFF}Gangzonenangriff {00FF00}:::]");
    SendClientMessage(playerid, COLOR_GREEN,"{00FF00}Du musst nun ca. 5 Minuten hier in der Nähe vom Angriffspunkt bleiben!");
    SendClientMessage(playerid, COLOR_GREEN,"{00FF00}Solltest du den Punkt verlassen oder sterben, wird der Angriff abgebrochen!");
    SetTimerEx("ReleaseGangZone", 600000, 0, "i", zoneid);
    printf("PlayerTakingOverZone(%d, %d)", playerid, zoneid);
    for(new idd; idd<GangZone_Index;idd++)
    {
    if(idd == TakeOver[playerid])
    {
    GangZoneFlashForAll(GangZone[idd][gzID], COLOR_RED);
    }
    }
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Es müssen mindestens 2 Mitglieder der gegnerischen Fraktion da sein!");
    }
    return 1;
    }


    Hoffe jmd. von euch kann mir helfen
    Nagut mfg


    /edit habe einen Error selbst behoben
    /edit 2 Besitze auch Team Viewer wenn nötig

    Hey gute Erklärung aber ich bekomme folgende Errors bzw. Warnings :


    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\BlackJordan.pwn(250) : error 029: invalid expression, assumed zero
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\BlackJordan.pwn(250) : warning 215: expression has no effect
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\BlackJordan.pwn(250) : error 001: expected token: ";", but found "if"
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\BlackJordan.pwn(250) : error 036: empty statement
    C:\Users\Benedikt\Desktop\Selfmade Server\gamemodes\BlackJordan.pwn(250) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.



    Diese Entsprechen folgenden Zeilen :


    if(strcmp(cmdtext, "/fill", true) == 0)
    {
    else if (GetPlayerVehicleSeat(playerid) != 0); return SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Fahrzeug (oder kein Fahrer).");
    new car = GetPlayerVehicleID(playerid)
    else if (TanktGerade[car]) return SendClientMessage(playerid,COLOR_RED,"Du tankst schon!");
    else if (Motor[car] == true) return SendClientMessage(playerid,COLOR_RED,"Du musst vor dem Tanken den Motor ausschalten.");
    new ZuTanken = 100-Tank[car];
    new preis = ZuTanken * BENZINPREIS;
    if (GetPlayerMoney(playerid)-preis < 0) return SendClientMessage(playerid,COLOR_TOMATO,"Du hast nicht genug Geld!");
    GivePlayerMoney(playerid, -preis);
    SendClientMessage(playerid, COLOR_GREEN, "Tanken wird gestartet.");
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid,0);
    TanktGerade[car] = true;
    tanktimer[playerid] = SetTimerEx("Auftanken",500,true,"i",playerid);
    return 1;
    }
    return 0;


    /edit Habe Teamviewer