4Error´s

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
  • Hi ich bekomme 4 error´s nicht behoben :


    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(1997) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(1997) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(1997) : error 001: expected token: ";", but found "if"
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(1997) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(1997) : 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.




    ZEILE:


    else if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))

    Einmal editiert, zuletzt von LyncH ()

  • public IsAtClothShop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    else if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
    {//Binco & Suburban
    return 1;
    }
    else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
    {//Zip & Victim
    return 1;
    }
    }
    return 0;
    }



    Der eigendliche fehler liegt in zeile 5 (1997)

  • Beim ersten PlayerToPoint gehöhrt nur ein "if" hin, statt "else if"
    Hilft aber trotzdem nichts, warn ja grad schon tv...
    Hast du zufällig ganz oben
    forward IsAtClothShop(playerid);
    stehen? Ist meine letzte Idee dazu
    //EDIT: Doch nochn Einfach, ist das "stock PlayerToPoint(...) {" auch in keinem anderen public drinne?


  • public IsAtClothShop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    else if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
    {//Binco & Suburban
    return 1;
    }
    else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
    {//Zip & Victim
    return 1;
    }
    }
    return 0;
    }




    Das ist alles was zum Thema Clothesshop steht mehr nicht

  • zeile 105


    forward IsAtClothShop(playerid);


    Zeile 1993
    public IsAtClothShop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    else if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
    {//Binco & Suburban
    return 1;
    }
    else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
    {//Zip & Victim
    return 1;
    }
    }
    return 0;
    }


    Bis Zeile 2007



    Zeile 22115

    public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
    {
    if(IsPlayerConnected(playerid))
    {
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
    return 1;
    }
    }
    return 0;
    }


    Bis Zeile 25132

  • Wieso gleich einschachteln? erstmal muss ne IF-Abfrage stattfinden.
    public IsAtClothShop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
    {//Binco & Suburban
    return 1;
    }
    else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
    {//Zip & Victim
    return 1;
    }
    }
    return 0;
    }

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Wenn ich das von KEVIN einfüge kommt das:


    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(1626) : error 004: function "SetPlayerToTeamColor" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(1651) : error 004: function "SetPlayerToTeamColor" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(1997) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(1999) : error 079: inconsistent return types (array & non-array)
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2001) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2003) : error 079: inconsistent return types (array & non-array)
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2005) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2005) : error 004: function "IsAtGasStation" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2009) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2011) : error 079: inconsistent return types (array & non-array)
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2013) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\oreallife.pwn(2015) : error 079: inconsistent return types (array & non-array)
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2017) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2019) : error 079: inconsistent return types (array & non-array)
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2021) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2023) : error 079: inconsistent return types (array & non-array)
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2025) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2027) : error 079: inconsistent return types (array & non-array)
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2029) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2031) : error 079: inconsistent return types (array & non-array)
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2033) : error 004: function "PlayerToPoint" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2035) : error 079: inconsistent return types (array & non-array)
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2038) : error 079: inconsistent return types (array & non-array)
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2041) : warning 225: unreachable code
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2041) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2041) : error 004: function "IsAtFishPlace" is not implemented
    C:\Dokumente und Einstellungen\Fabio\Eigene Dateien\ICQ\272362772\ReceivedFiles\Flo\reallife.pwn(2045) : error 004: function "PlayerToPoint" is not implemented


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



    26 Errors.





    Dieses hier habe ich eingefügt:
    public IsAtClothShop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
    {//Binco & Suburban
    return 1;
    }
    else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
    {//Zip & Victim
    return 1;
    }
    }
    return 0;
    }

  • vielleicht gehts so ist nicht getestet vermute ich nur



    public IsAtClothShop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
    {//Binco & Suburban
    return 1;
    }
    else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
    {//Zip & Victim
    return 1;
    }
    }
    return 0;
    }

    RFT