:: Habe 1 Error ::

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
  • \gamemodes\s.pwn(15487) : warning 219: local variable "hour" shadows a variable at a preceding level
    \gamemodes\s.pwn(17633) : warning 219: local variable "hour" shadows a variable at a preceding level
    \gamemodes\s.pwn(26690) : error 004: function "IsAtGasStation" is not implemented
    \gamemodes\s.pwn(31803) : warning 219: local variable "hour" shadows a variable at a preceding level
    \gamemodes\s.pwn(33404) : warning 203: symbol is never used: "Refueling"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Errors.
    else if(strcmp(x_job,"fuel",true) == 0)
    {
    if(IsAtGasStation(playerid))
    {
    new price = 20 * SBizzInfo[3][sbEntranceCost];
    format(string, sizeof(string), "* You filled your Gas Can with 20% Fuel for $%d",price);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    PlayerInfo[playerid][pFuel] = 20;
    GivePlayerMoney(playerid, - price);
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_GREY," You're not at a Gas Station!");
    return 1;
    }
    }
    else { return 1; }
    }//not connected
    return 1;
    }


    [size=18][color=#000099][font='Comic Sans MS, sans-serif'][b]

  • ja das brauchst du schon gg


    forward IsAtGasStation(playerid);
    public IsAtGasStation(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906))
    {//LS
    return 1;
    }
    else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391))
    {//LS
    return 1;
    }
    else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175))
    {//SF
    return 1;
    }
    else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484))
    {//Between LS and SF
    return 1;
    }
    else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
    {//LV
    return 1;
    }
    else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165))
    {//LV
    return 1;
    }
    else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625))
    {//LV
    return 1;
    }
    }
    return 0;
    }