Beiträge von BlackLegend

    Hallo,


    Ich habe(mal wieder-.-) ein Problem, diesmal bei meinem GangAutohaussystem


    Hier die Fehler und die Zeilen:


    C:\Users\Patrick\Desktop\Desktop aufräumer\autohausordner\filterscripts\Gangautohaus.pwn(365) : warning 213: tag mismatch
    C:\Users\Patrick\Desktop\Desktop aufräumer\autohausordner\filterscripts\Gangautohaus.pwn(365) : error 032: array index out of bounds (variable "GangAutoSpawns")
    C:\Users\Patrick\Desktop\Desktop aufräumer\autohausordner\filterscripts\Gangautohaus.pwn(366) : warning 213: tag mismatch
    C:\Users\Patrick\Desktop\Desktop aufräumer\autohausordner\filterscripts\Gangautohaus.pwn(366) : error 032: array index out of bounds (variable "GangAutoSpawns")
    C:\Users\Patrick\Desktop\Desktop aufräumer\autohausordner\filterscripts\Gangautohaus.pwn(367) : warning 213: tag mismatch
    C:\Users\Patrick\Desktop\Desktop aufräumer\autohausordner\filterscripts\Gangautohaus.pwn(367) : error 032: array index out of bounds (variable "GangAutoSpawns")
    C:\Users\Patrick\Desktop\Desktop aufräumer\autohausordner\filterscripts\Gangautohaus.pwn(367) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Patrick\Desktop\Desktop aufräumer\autohausordner\filterscripts\Gangautohaus.pwn(368) : warning 213: tag mismatch
    C:\Users\Patrick\Desktop\Desktop aufräumer\autohausordner\filterscripts\Gangautohaus.pwn(368) : error 032: array index out of bounds (variable "GangCarList")





    new GangAutoSpawns[1][ahGangSpawn] = {
    {739.7457,-1343.8668,13.2828,270.2592}
    };




    else if (strcmp("/kaufen", x_frac, true, 10) == 0)
    {
    if (Spectating[playerid][0]!=-1)
    {
    for(new car = 0; car < Max_Gang_Cars; car++)
    {
    if(PlayerInfo[playerid][pLeader] != 0)
    {
    if(GangCarList[PlayerInfo[playerid][pLeader]][car][Carid] != 0 && gesetzt[playerid] != 1)
    {
    new preis = GangKaufliste[Spectating[playerid][0]][Preis];
    if (GetPlayerMoney(playerid) >= preis)
    {
    new autohaus=GangKaufliste[Spectating[playerid][0]][Autohaus];
    GivePlayerMoney(playerid, - preis);
    GangCarList[PlayerInfo[playerid][pLeader]][car][Typ]=Spectating[playerid][0];
    GangCarList[PlayerInfo[playerid][pLeader]][car][GangX]=GangAutoSpawns[autohaus][GanggX];
    GangCarList[PlayerInfo[playerid][pLeader]][car][GangY]=GangAutoSpawns[autohaus][GanggY];
    GangCarList[PlayerInfo[playerid][pLeader]][car]=GangAutoSpawns[autohaus][GanggZ];
    GangCarList[PlayerInfo[playerid][pLeader]][car][GanggRotation]=GangAutoSpawns[autohaus][GanggRotation];
    SetVehicleParamsForAll(GangKaufliste[Spectating[playerid][0]][Carid],0,0);
    TogglePlayerControllable(playerid,1);
    Spectating[playerid][0]=-1;
    RemovePlayerFromVehicle(playerid);
    format(string,sizeof(string),"Du hast dir erfolgreich für $%i ein/einen %s gekauft!",preis,GangKaufliste[GangCarList[PlayerInfo[playerid][pLeader]][car][Typ]][Name]);
    SendClientMessage(playerid, COLOR_RED, string);
    SendClientMessage(playerid, COLOR_GREEN, "Wenn du dein Fahrzeug zerstörst, gib /freperatur ein.");
    SendClientMessage(playerid, COLOR_GREEN, "Mit /fschloss kannst du dein Fahrzeug für andere Leute freigeben oder abschließen.");
    SendClientMessage(playerid, COLOR_GREEN, "Mehr Befehle kannst du unter /fhilfe sehen.");
    SendClientMessage(playerid, COLOR_YELLOW, "Dein Auto steht am Ausgabepunkt bereit! Viel Spaß beim Fahren!");
    }
    else
    {
    new string2[64];
    format(string2,sizeof(string2), "Du hast nicht genug Geld für das Auto (benötigt: $%i)!", preis);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    }
    OnGangBuyCar(PlayerInfo[playerid][pLeader], playerid);//PlayerInfo.... PLeader
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Du besitzt bereits ein Fahrzeug auf diesem Schlüssel");
    }
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Du besichtigst kein Auto!");
    }
    return 1;
    }
    }




    ich hoffe ihr könnt mir erneut helfen:)


    Lg BlackLegend

    So das Problem hat sich erledigt: hab den Float: vergessen


    Nächste Frage: Wie speicher und lade ich einen Farbcode in/aus eine/r Datei? mit strval floatstr und strmid geht das nicht wenn der geladen wird ist der dann immer 0.


    Ich hab mal irgentwo gelesen das man den Code in einen Integer umwandeln muss, speichern lassen muss, sie wieder laden kann und dann wieder in den Farbcode umwandeln soll.


    Nur weis ich nicht wie das geht. Könntet ihr mir villeicht helfen?




    Lg Black



    Sry für Doppelpost

    Guten Tag


    Ich habe da in dem Script:


    public LoadGangZonen()
    {
    new arrCoords[19][64];
    new strFromFile2[256];
    new File: file = fopen("GangZonen.cfg", io_read);
    if (file)
    {
    new idx;
    while (idx < sizeof(GangZonenInfo))
    {
    fread(file, strFromFile2);
    split(strFromFile2, arrCoords, '|');
    strmid(GangZonenInfo[idx][Besitzer], arrCoords[0], 0, strlen(arrCoords[0]), 255);//besitzer
    GangZonenInfo[idx][PosX] = floatstr(arrCoords[1]);
    GangZonenInfo[idx][PosY] = floatstr(arrCoords[2]);
    GangZonenInfo[idx][PosX2] = floatstr(arrCoords[3]);
    GangZonenInfo[idx][PosY2] = floatstr(arrCoords[4]);
    GangZonenInfo[idx][GangZoneFarbe] = strval(arrCoords[5]);
    GangZonenInfo[idx][Angegriffen] = strval(arrCoords[6]);
    GangZonenInfo[idx][VerteidigerKills] = strval(arrCoords[7]);
    GangZonenInfo[idx][AngreiferKills] = strval(arrCoords[8]);
    }
    fclose(file);
    }
    return 1;
    }


    folgende warnings:


    I:\Server\Red-Scorpions\gamemodes\Hannibal-script.pwn(14) : warning 213: tag mismatch
    I:\Server\Red-Scorpions\gamemodes\Hannibal-script.pwn(15) : warning 213: tag mismatch
    I:\Server\Red-Scorpions\gamemodes\Hannibal-script.pwn(16) : warning 213: tag mismatch
    I:\Server\Red-Scorpions\gamemodes\Hannibal-script.pwn(17) : warning 213: tag mismatch
    Pawn compiler 3.2.3664


    weis jemand woran das liegt?

    Also danke erstmal.


    Z.b. so?


    SetTimer("Gangzonencheck",5000,0);
    public Gangzonencheck()
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(playerinfo[i][pfrak] == Vagos)
    {
    if(!IsPlayerInArea(i,x,y,x,y)
    {
    GangzoneStopFlashForAll(vagos)
    }
    }
    }




    Aber wird dann der Timer nicht nur einmal benutzt?

    Guten Tag,


    Ich habe vor einiger Zeit damit angefangen ein Gangfight Script zu entwickeln. Ich bin auch schon realtiv weit nur würde ich das gern so machen, dass wenn alle Spieler vom Angreifer Team die Gangzone verlassen haben das Gf gestoppt wird. Nur leider habe ich keine Ahnung wie ich das Abfragen soll. Ich hoffe ihr könnt mir dabei helfen.




    Mit freundlichen Grüßen


    BlackLegend

    ok das hilft mir schonmal weiter danke:)




    Aber wo muss ich jetzt die playerinfo hinschreiben also welche fraktion er ist? Da wo Vagos steht oder bei Team? Weil Team ist bei mir nicht definiert.


    Ich meine das so:




    if(Team[killerid]//hir hin == Vagos// oder hir hin?)
    {
    GangKillsVagos ++;
    }
    else if(Team[killerid] == Yakuza)
    {
    new string[32];
    format(string, sizeof(string), "Im Kampf um das HQ der Vagos steht es %d (Vagos) zu %d (Yakuza), GangKillsYakua);
    SendClientMessageToAll(TEAM_BLUE_COLOR,string);
    GangKillsYakuza ++;
    }

    Guten Tag,


    Ich habe gestern damit begonnen ein Gangfight System für einen Reallife Server zu erstellen.


    Bis jetzt läuft alles gut nur habe ich 2 Probleme. Ich hoffe ihr könnt mir dabei helfen sie zu lösen:



    1. Problem: Wie frage ich denn ab ob ein spieler aus der gegnerischen Mannschaft einen killt? Ich möchte dann eine Nachricht an alle senden. Ich weis nur leider nicht wie ich das im Script abfrage...



    mein 2. Problem: Wenn jetzt sagen wir mal die Yakuza gegen die Vagos kämpft, und die Yakuza gewinnt, wie frage ich dann ab wer mer Kills hat, also wer das Gebiet bekommt?





    Lg Black

    Du hast igendwo ein klammerfehler eingebaut


    hmm aber das kommt auch wenn ich es genau so einfüge wie aus der pastebin die includes habe ich schon


    ich hab auch schon zig mal durch gekuckt aber ich kann da echt kein Fehler finden. Könnte es evtl auch was anderem liegen?




    MfG Black

    hmm hab da iwie auch 26 errors


    woran liegt das? kann mir bitte wer helfen bin am verzweifeln:(





    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(40) : error 026: no matching "#if..."
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(47) : error 026: no matching "#if..."
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(82) : error 017: undefined symbol "GetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(83) : error 017: undefined symbol "SetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(90) : error 017: undefined symbol "GetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(91) : error 017: undefined symbol "SetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(76) : warning 203: symbol is never used: "objective"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(76) : warning 203: symbol is never used: "boot"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(76) : warning 203: symbol is never used: "bonnet"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(76) : warning 203: symbol is never used: "doors"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(76) : warning 203: symbol is never used: "alarm"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(76) : warning 203: symbol is never used: "lights"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(76) : warning 203: symbol is never used: "engine"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(110) : error 017: undefined symbol "GetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(111) : error 017: undefined symbol "SetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(118) : error 017: undefined symbol "GetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(119) : error 017: undefined symbol "SetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(104) : warning 203: symbol is never used: "objective"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(104) : warning 203: symbol is never used: "boot"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(104) : warning 203: symbol is never used: "bonnet"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(104) : warning 203: symbol is never used: "doors"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(104) : warning 203: symbol is never used: "alarm"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(104) : warning 203: symbol is never used: "lights"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(104) : warning 203: symbol is never used: "engine"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(164) : error 017: undefined symbol "GetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(165) : error 017: undefined symbol "SetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(171) : error 017: undefined symbol "GetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(172) : error 017: undefined symbol "SetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(161) : warning 204: symbol is assigned a value that is never used: "vid"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(158) : warning 203: symbol is never used: "objective"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(158) : warning 203: symbol is never used: "boot"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(158) : warning 203: symbol is never used: "bonnet"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(158) : warning 203: symbol is never used: "doors"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(158) : warning 203: symbol is never used: "alarm"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(158) : warning 203: symbol is never used: "lights"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(158) : warning 203: symbol is never used: "engine"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(188) : error 017: undefined symbol "GetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(189) : error 017: undefined symbol "SetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(195) : error 017: undefined symbol "GetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(196) : error 017: undefined symbol "SetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(185) : warning 204: symbol is assigned a value that is never used: "vid"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(182) : warning 203: symbol is never used: "objective"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(182) : warning 203: symbol is never used: "boot"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(182) : warning 203: symbol is never used: "bonnet"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(182) : warning 203: symbol is never used: "doors"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(182) : warning 203: symbol is never used: "alarm"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(182) : warning 203: symbol is never used: "lights"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(182) : warning 203: symbol is never used: "engine"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(213) : error 017: undefined symbol "GetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(214) : error 017: undefined symbol "SetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(220) : error 017: undefined symbol "GetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(221) : error 017: undefined symbol "SetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(207) : warning 203: symbol is never used: "objective"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(207) : warning 203: symbol is never used: "boot"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(207) : warning 203: symbol is never used: "bonnet"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(207) : warning 203: symbol is never used: "doors"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(207) : warning 203: symbol is never used: "alarm"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(207) : warning 203: symbol is never used: "lights"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(207) : warning 203: symbol is never used: "engine"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(242) : error 017: undefined symbol "AttachObjectToVehicle"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(269) : error 017: undefined symbol "GetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(270) : error 017: undefined symbol "SetVehicleParamsEx"
    C:\Users\Patrick\Desktop\Samp 0.3c\filterscripts\Motor.pwn(275) : error 017: undefined symbol "GetVehicleParamsEx"


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



    26 Errors.