4 error´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
  • Komme einfach nicht mehr weiter =(


    hier:


    C:\DOKUME~1\Fabio\Desktop\OREALL~1.PWN(1996) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\Fabio\Desktop\OREALL~1.PWN(1996) : warning 215: expression has no effect
    C:\DOKUME~1\Fabio\Desktop\OREALL~1.PWN(1996) : error 001: expected token: ";", but found "if"
    C:\DOKUME~1\Fabio\Desktop\OREALL~1.PWN(1996) : error 004: function "PlayerToPoint" is not implemented
    C:\DOKUME~1\Fabio\Desktop\OREALL~1.PWN(1996) : 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.




    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 1;
    }



    Zeile 1996 = 5

  • Eig. kein Fehler aber kann auch an der Leerzeile liegen.
    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 1;
    }


    Powered by Windows 7


    Die HDD stimmt nich , hab 3 Festplatten drin.

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


  • so:

    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;
    }

  • Benjamin dachte immer du rückst gut ein :D
    sieht die Einrückung nicht eher so aus ?
    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;
    }


    Powered by Windows 7


    Die HDD stimmt nich , hab 3 Festplatten drin.

  • öhm jo ich rück ein aber nö ich hätte es so gemacht:

    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;
    }

  • Hab mal in sein Script reingelook, er hat jetz nur i-wo n klammerfehler^^