Biz betreten mit Taste [Enter]

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
  • Hallo, bin gerade dabei das Biz System zu verbessern. Habe nun das Problem das ich 26 Errors bekomme, woran kann dies liegen?


    if(newkeys == KEY_SECONDARY_ATTACK)
    {
    for(new i = 0; i < sizeof(BizzInfo); i++)
    {
    if (IsPlayerInRangeOfPoint(playerid,3.0,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
    {
    //printf("Found House :%d",i);
    /*if(!IsACop(playerid) && i == 3)
    {
    SendClientMessage(playerid, COLOR_GREY, " Nur für Beamte !");
    return 1;
    }*/
    if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
    {
    if(PlayerInfo[playerid][pPbiskey] != i)
    {
    if(BizzInfo[i][bLocked] == 1)
    {
    GameTextForPlayer(playerid, "~r~Verschlossen", 5000, 1);
    return 1;
    }
    if(BizzInfo[i][bProducts] == 0)
    {
    GameTextForPlayer(playerid, "~r~Ausverkauft", 5000, 1);
    return 1;
    }
    GivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
    format(string, sizeof(string), " ", BizzInfo[i][bEntranceCost]);
    BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
    ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
    BizzInfo[i][bProducts]--;
    OnPropUpdate();
    GameTextForPlayer(playerid, string, 5000, 3);
    }
    SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
    SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
    PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
    PlayerInfo[playerid][pLocal] = i+99;
    new dood[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dood, sizeof(dood));
    format(string, sizeof(string), "%s bezahlte $%d um das Gebäude zu betreten %d", dood, BizzInfo[i][bEntranceCost], i);
    printf("%s", string);
    PayLog(string);
    //PlayerInfo[playerid][pLocal] = i;
    }
    else
    {
    GameTextForPlayer(playerid, "~r~Du hast nicht genug Geld", 5000, 1);
    }
    }
    }
    for(new i = 0; i < sizeof(SBizzInfo); i++)
    {
    if (IsPlayerInRangeOfPoint(playerid,3.0,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
    {
    if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= SBizzInfo[i][sbEntranceCost])
    {
    if(PlayerInfo[playerid][pPbiskey] != i)
    {
    if(SBizzInfo[i][sbLocked] == 1)
    {
    GameTextForPlayer(playerid, "~r~Geschlossen", 5000, 1);
    return 1;
    }
    if(SBizzInfo[i][sbProducts] == 0)
    {
    GameTextForPlayer(playerid, "~r~Ausverkauft", 5000, 1);
    return 1;
    }
    GivePlayerMoney(playerid,-SBizzInfo[i][sbEntranceCost]);
    gSpentCash[playerid] = GetPlayerMoney(playerid);
    SBizzInfo[i][sbProducts]--;
    SBizzInfo[i][sbTill] += SBizzInfo[i][sbEntranceCost];
    ExtortionSBiz(i, SBizzInfo[i][sbEntranceCost]);
    new dood[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dood, sizeof(dood));
    format(string, sizeof(string), "%s bezahlt $%d um das sbiz %d zu betreten", dood, SBizzInfo[i][sbEntranceCost], i);
    printf("%s", string);
    PayLog(string);
    OnPropUpdate();
    }
    }
    else
    {
    GameTextForPlayer(playerid, "~r~Du hast nicht genug Geld", 5000, 1);
    }
    }
    }


    Ich würde mich um positive Antworten freuen.



    Liebe Grüße,
    Matze

  • Errors:


    E:\Grand Theft Auto SanAndreas\Server\WOS Script 2.0\pawno\include\M_Bot.inc(152) : error 017: undefined symbol "IsAnAdmin"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(2617) : error 017: undefined symbol "ExtortionSBiz"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(2968) : error 017: undefined symbol "IsATransportGMBH"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(3015) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(3028) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(3038) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(3046) : error 017: undefined symbol "IsAFahrschulVeh"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(3059) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(3069) : error 017: undefined symbol "IsPlayerInFrac"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(3755) : error 017: undefined symbol "OnPlayerCarLogin"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4010) : error 017: undefined symbol "SendIRCMessage"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4032) : error 017: undefined symbol "SendIRCMessage"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4064) : error 017: undefined symbol "SavePapers"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4301) : error 017: undefined symbol "OOCOff"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4313) : error 017: undefined symbol "OOCOff"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4331) : error 017: undefined symbol "SaveStuff"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4333) : error 017: undefined symbol "OOCOff"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4339) : error 017: undefined symbol "SaveStuff"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4341) : error 017: undefined symbol "OOCOff"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4366) : error 017: undefined symbol "SetPlayerToTeamColor"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4384) : error 017: undefined symbol "RemoveBlitzer"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4399) : error 017: undefined symbol "OnPlayerCarUpdate"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4420) : error 017: undefined symbol "ABroadCast"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4430) : error 017: undefined symbol "ABroadCast"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4459) : error 017: undefined symbol "PlayerUpdate"
    C:\Users\Matze\Desktop\Server\WOS Script 2.0\gamemodes\Dark.pwn(4463) : error 017: undefined symbol "Log"


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



    26 Errors.


    Errors zeigen in eine andere Zeile.