Wahrscheinlicher Klammerfehler gesucht

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Ich bekomm den Error:
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(6891) : error 010: invalid function or declaration
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(6894) : error 010: invalid function or declaration
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(6896) : error 010: invalid function or declaration



    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    if(newkeys == (KEY_SUBMISSION))
    {
    //LVPD EINFAHRTSTOR
    if(IsPlayerInRangeOfPoint(playerid,3.5, 2350.0652,2423.2896,10.7618))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
    MoveObject(LVPDtor1, 2339.08,2451.31,6.17, 2.0);
    SetTimer("LVPDtor1zu", 3500, 0);
    MoveObject(LVPDtor2, 2330.20,2436.41,6.17, 2.0);
    SetTimer("LVPDtor2zu", 3500, 0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3.5, 2316.7664,2446.2881,3.0210))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
    MoveObject(LVPDtor1, 2339.08,2451.31,6.17, 2.0);
    SetTimer("LVPDtor1zu", 3500, 0);
    MoveObject(LVPDtor2, 2330.20,2436.41,6.17, 2.0);
    SetTimer("LVPDtor2zu", 3500, 0);
    }
    }
    //LVPD HINTERTOR
    else if(IsPlayerInRangeOfPoint(playerid,3.5, 2306.0933,2491.6829,3.0179))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2)
    {
    MoveObject(LVPDhintertor, 2293.850586,2505.787109,3.941181,2.0);
    SetTimer("LVPDhintertorzu", 4500, 0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3.5, 2248.4939,2494.7490,10.4546))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2)
    {
    MoveObject(LVPDhintertor, 2293.850586,2505.787109,3.941181,2.0);
    SetTimer("LVPDhintertorzu", 4500, 0);
    }
    }
    //LVPDschranke
    else if(IsPlayerInRangeOfPoint(playerid,10.0,2238.197510,2450.375977,10.622423))
    {
    MoveObjektRot(LVPDschranke,0.8594,356.5623,270.0000,15);
    SetTimer("LVPDschrankezu", 1500, 0);
    GivePlayerMoney(playerid, -20);
    GameTextForPlayer(playerid, "Willkommen im LVPD, der Parkplatz kostet 20$",5000,5);
    }
    }
    }


    if(newkeys == (KEY_WALK)) //Hier kommen die ERRORS
    {
    //FBItüroben rechts
    if(IsPlayerInRangeOfPoint(playerid,2, 298.18594360352,189.36297607422,1006.171875))
    {
    if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
    {
    MoveObject(LVPDfbitur1links 294.32751464844, 189.30493164063, 1006.171875, 2.0);
    SetTimer("LVPDfbitur1linkszu", 3500, 0);
    MoveObject(LVPDfbitur1rechts, 298.96795654297, 189.37852478027, 1006.171875, 2.0);
    SetTimer("LVPDfbitur1rechtszu", 3500, 0);
    }
    }




    Klammerfehler? aber welchen?
    Wenn ich alles ab if(newkeys == (KEY_WALK)) nicht mehr mitcompile...
    klappt alles

    Einmal editiert, zuletzt von hannes ()


  • //LVPDschranke
    else if(IsPlayerInRangeOfPoint(playerid,10.0,2238.197510,2450.375977,10.622423))
    {
    MoveObjektRot(LVPDschranke,0.8594,356.5623,270.0000,15);
    SetTimer("LVPDschrankezu", 1500, 0);
    GivePlayerMoney(playerid, -20);
    GameTextForPlayer(playerid, "Willkommen im LVPD, der Parkplatz kostet 20$",5000,5);
    }//hier muss eine weg
    }
    }

    I'm Sorry For Your Mistake!
    but it's yours

  • Dann kommt
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1632) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1636) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1648) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1652) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1656) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1660) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1664) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1668) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1672) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1684) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1688) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1692) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1696) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1700) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1712) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1716) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1720) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1732) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1736) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(1993) : error 004: function "SendIRCMessage" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(2015) : error 004: function "SendIRCMessage" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(2326) : error 004: function "OOCOff" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(2338) : error 004: function "OOCOff" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(2358) : error 004: function "OOCOff" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(2366) : error 004: function "OOCOff" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum.pwn(2377) : error 004: function "OnPlayerUpdate" is not implemented


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



    26 Errors.


    Sonst noch jemand ne Idee?

    Einmal editiert, zuletzt von hannes ()

  • Wenn ihr den Code mal einrücken würdet, würdet ihr auch viel schneller solche fehler finden...



    Spoiler anzeigen

    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    if(newkeys == (KEY_SUBMISSION))
    {
    //LVPD EINFAHRTSTOR
    if(IsPlayerInRangeOfPoint(playerid,3.5, 2350.0652,2423.2896,10.7618))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
    MoveObject(LVPDtor1, 2339.08,2451.31,6.17, 2.0);
    SetTimer("LVPDtor1zu", 3500, 0);
    MoveObject(LVPDtor2, 2330.20,2436.41,6.17, 2.0);
    SetTimer("LVPDtor2zu", 3500, 0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3.5, 2316.7664,2446.2881,3.0210))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
    MoveObject(LVPDtor1, 2339.08,2451.31,6.17, 2.0);
    SetTimer("LVPDtor1zu", 3500, 0);
    MoveObject(LVPDtor2, 2330.20,2436.41,6.17, 2.0);
    SetTimer("LVPDtor2zu", 3500, 0);
    }
    }
    //LVPD HINTERTOR
    else if(IsPlayerInRangeOfPoint(playerid,3.5, 2306.0933,2491.6829,3.0179))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2)
    {
    MoveObject(LVPDhintertor, 2293.850586,2505.787109,3.941181,2.0);
    SetTimer("LVPDhintertorzu", 4500, 0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3.5, 2248.4939,2494.7490,10.4546))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2)
    {
    MoveObject(LVPDhintertor, 2293.850586,2505.787109,3.941181,2.0);
    SetTimer("LVPDhintertorzu", 4500, 0);
    }
    }
    //LVPDschranke
    else if(IsPlayerInRangeOfPoint(playerid,10.0,2238.197510,2450.375977,10.622423))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2)
    {
    MoveObjektRot(LVPDschranke,0.8594,356.5623,270.0000,15);
    SetTimer("LVPDschrankezu", 1500, 0);
    GivePlayerMoney(playerid, -20);
    GameTextForPlayer(playerid, "Willkommen im LVPD, der Parkplatz kostet 20$",5000,5);
    }
    }
    }
    if(newkeys == (KEY_WALK))
    {
    //FBItüroben rechts
    if(IsPlayerInRangeOfPoint(playerid,2, 298.18594360352,189.36297607422,1006.171875))
    {
    if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
    {
    MoveObject(LVPDfbitur1links 294.32751464844, 189.30493164063, 1006.171875, 2.0);
    SetTimer("LVPDfbitur1linkszu", 3500, 0);
    MoveObject(LVPDfbitur1rechts, 298.96795654297, 189.37852478027, 1006.171875, 2.0);
    SetTimer("LVPDfbitur1rechtszu", 3500, 0);
    }
    }
    }
    //rest vom public


  • public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    if(newkeys == (KEY_SUBMISSION))
    {
    //LVPD EINFAHRTSTOR
    if(IsPlayerInRangeOfPoint(playerid,3.5, 2350.0652,2423.2896,10.7618))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
    MoveObject(LVPDtor1, 2339.08,2451.31,6.17, 2.0);
    SetTimer("LVPDtor1zu", 3500, 0);
    MoveObject(LVPDtor2, 2330.20,2436.41,6.17, 2.0);
    SetTimer("LVPDtor2zu", 3500, 0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3.5, 2316.7664,2446.2881,3.0210))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
    {
    MoveObject(LVPDtor1, 2339.08,2451.31,6.17, 2.0);
    SetTimer("LVPDtor1zu", 3500, 0);
    MoveObject(LVPDtor2, 2330.20,2436.41,6.17, 2.0);
    SetTimer("LVPDtor2zu", 3500, 0);
    }
    }
    //LVPD HINTERTOR
    else if(IsPlayerInRangeOfPoint(playerid,3.5, 2306.0933,2491.6829,3.0179))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2)
    {
    MoveObject(LVPDhintertor, 2293.850586,2505.787109,3.941181,2.0);
    SetTimer("LVPDhintertorzu", 4500, 0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3.5, 2248.4939,2494.7490,10.4546))
    {
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2)
    {
    MoveObject(LVPDhintertor, 2293.850586,2505.787109,3.941181,2.0);
    SetTimer("LVPDhintertorzu", 4500, 0);
    }
    }
    //LVPDschranke
    else if(IsPlayerInRangeOfPoint(playerid,10.0,2238.197510,2450.375977,10.622423))
    {
    MoveObjektRot(LVPDschranke,0.8594,356.5623,270.0000,15);
    SetTimer("LVPDschrankezu", 1500, 0);
    GivePlayerMoney(playerid, -20);
    GameTextForPlayer(playerid, "Willkommen im LVPD, der Parkplatz kostet 40$",5000,1);
    }
    }
    }
    if(newkeys == (KEY_WALK))


    ERROR:
    error 010: invalid function or declaration [bei if(newkeys == (KEY_WALK))]

  • Wenn ich deins nehme kommen wieder Errors


    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1632) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1636) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1648) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1652) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1656) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1660) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1664) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1668) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1672) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1684) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1688) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1692) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1696) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1700) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1712) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1716) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1720) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1732) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1736) : error 004: function "PlayerToPoint" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(1993) : error 004: function "SendIRCMessage" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(2015) : error 004: function "SendIRCMessage" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(2326) : error 004: function "OOCOff" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(2338) : error 004: function "OOCOff" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(2358) : error 004: function "OOCOff" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(2366) : error 004: function "OOCOff" is not implemented
    D:\Spiele\Grand Theft Auto San Andreas\pawno\LVPDinnenraum2.pwn(2377) : error 004: function "OnPlayerUpdate" is not implemented


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



    26 Errors.
    I need help! Weis keiner was den Fehler verursacht?

    Einmal editiert, zuletzt von hannes ()

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen