[GODFATHER] sbizz/bizz/property.cfg

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

  • 1539.8287,-851.3865,64.3361


    Ab der 2. dann 6


    //EDIT: Warst schneller^^

  • wenn ich das gemacht habe ist das auch gut aber wenn ich in einem haus drin bin ist alles schwarz und mann kan nicht mehr /exit machen.
    Also alles ist schwarz ich kann mich bewegen und wennn ich dann /gotols mache bin ich auch in ls aber wenn ich wieder reingehe ist alle schwarz
    Wieso?


    //edit: Hat den keiner eine antwort?

    Einmal editiert, zuletzt von Pipapaul ()

  • Bei mir sieht das alles so aus:



    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|170|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|214|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|1616|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|920|0|0|1000|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|54500|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|30000|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|4900|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|0|0|0|0|1000|1000
    0||||0.000000|0.000000|0.000000|0|0|0|7500|0|0|0|1000|1000


    Was ist da los?

    Meine Ziele
    350 Posts [X]

    375 Posts [X]

    400 Posts []

    425 Posts []

    450 Posts []



  • Fehler :(



    C:\Users\acer\Desktop\0.3c Projekt\gamemodes\SLRPneu.pwn(12219) : error 032: array index out of bounds (variable "SBizzInfo")
    C:\Users\acer\Desktop\0.3c Projekt\gamemodes\SLRPneu.pwn(12234) : error 032: array index out of bounds (variable "SBizzInfo")
    C:\Users\acer\Desktop\0.3c Projekt\gamemodes\SLRPneu.pwn(12242) : error 032: array index out of bounds (variable "SBizzInfo")
    C:\Users\acer\Desktop\0.3c Projekt\gamemodes\SLRPneu.pwn(12341) : error 032: array index out of bounds (variable "SBizzInfo")
    C:\Users\acer\Desktop\0.3c Projekt\gamemodes\SLRPneu.pwn(12368) : error 032: array index out of bounds (variable "SBizzInfo")
    C:\Users\acer\Desktop\0.3c Projekt\gamemodes\SLRPneu.pwn(12424) : error 032: array index out of bounds (variable "SBizzInfo")
    C:\Users\acer\Desktop\0.3c Projekt\gamemodes\SLRPneu.pwn(12437) : error 032: array index out of bounds (variable "SBizzInfo")
    C:\Users\acer\Desktop\0.3c Projekt\gamemodes\SLRPneu.pwn(12480) : error 032: array index out of bounds (variable "SBizzInfo")
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    8 Errors.


    und hier der kleine ausschnitt

    if(strcmp(cmd, "/buy", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if (!PlayerToPoint(100, playerid,-30.875, -88.9609, 1004.53))//centerpoint 24-7
    {
    SendClientMessage(playerid, COLOR_GRAD2, " You are not in a 24-7 !");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buy [item number]");
    SendClientMessage(playerid, COLOR_GREEN, "|_______ 24-7 _______|");
    SendClientMessage(playerid, COLOR_GRAD1, "| 1: Cell Phone $500 2: Scratch Card $7500");
    SendClientMessage(playerid, COLOR_GRAD2, "| 3: Phone Book $5000 4: Dice $500");
    SendClientMessage(playerid, COLOR_GRAD3, "| 5: Vehicle Key $5000 6: Vehicle Lock $10000");
    SendClientMessage(playerid, COLOR_GRAD4, "| 7: Speedometer $5000 8: Condom $50");
    SendClientMessage(playerid, COLOR_GRAD5, "| 9: CD-Player $2500 10: Chicken $10 ");
    SendClientMessage(playerid, COLOR_GRAD5, "| 11: Hamburger $10 12: Frozen Pizza $10");
    return 1;
    }
    new item = strval(tmp);
    if(SBizzInfo[13][sbProducts] == 0)//Hier sind immer die errors
    {
    GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
    return 1;
    }
    if (item == 1 && GetPlayerMoney(playerid) > 500)
    {
    if(PlayerInfo[playerid][pTraderPerk] > 0)
    {
    new skill = 500 / 100;
    new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
    new payout = 500 - price;
    format(string, sizeof(string), "~r~-$%d", payout);
    GameTextForPlayer(playerid, string, 5000, 1);
    GivePlayerMoney(playerid,- payout);
    SBizzInfo[13][sbTill] += payout;//Hier sind immer die errors
    ExtortionSBiz(13, payout);//Hier sind immer die errors
    }
    else
    {
    format(string, sizeof(string), "~r~-$%d", 500);
    GameTextForPlayer(playerid, string, 5000, 1);
    GivePlayerMoney(playerid,-500);
    SBizzInfo[13][sbTill] += 500;//Hier sind immer die errors
    ExtortionSBiz(13, 500);//Hier sind immer die errors
    }
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    new randphone = 1000 + random(8999);//minimum 1000 max 9999
    PlayerInfo[playerid][pPnumber] = randphone;
    format(string, sizeof(string), " Mobile Phone Purchased your new Number is %d", randphone);
    SendClientMessage(playerid, COLOR_GRAD4, string);
    SendClientMessage(playerid, COLOR_GRAD5, "You can check this anytime by Typing /stats");
    SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now type /help to see your cell phone commands.");
    return 1;
    }
    else if (item == 2 && GetPlayerMoney(playerid) > 7500)
    {
    if(PlayerInfo[playerid][pTraderPerk] > 0)
    {
    //USW::::: :(
    new skill = 7500 / 100;
    new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
    new payout = 7500 - price;
    GivePlayerMoney(playerid,- payout);
    SBizzInfo[13][sbTill] += payout;//Hier sind immer die errors
    ExtortionSBiz(13, payout);//Hier sind immer die errors
    format(string, sizeof(string), "~r~-$%d", payout);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    else
    {
    GivePlayerMoney(playerid,-7500);
    SBizzInfo[9][sbTill] += 7500;
    ExtortionSBiz(9, 7500);
    format(string, sizeof(string), "~r~-$%d", 1000);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    new prize;
    new symb1[32]; new symb2[32]; new symb3[32];
    new randcard1 = random(10);//minimum 1000 max 9999
    new randcard2 = random(10);//minimum 1000 max 9999
    new randcard3 = random(10);//minimum 1000 max 9999
    if(randcard1 >= 5)
    {
    format(symb1, sizeof(symb1), "~b~]");
    randcard1 = 1;
    }
    else if(randcard1 <= 4 && randcard1 >= 2)
    {
    format(symb1, sizeof(symb1), "~g~]");
    randcard1 = 2;
    }
    else if(randcard1 < 2)
    {
    format(symb1, sizeof(symb1), "~y~]");
    randcard1 = 3;
    }
    if(randcard2 >= 5)
    {
    format(symb2, sizeof(symb2), "~b~]");
    randcard2 = 1;
    }
    else if(randcard2 <= 4 && randcard2 >= 2)
    {
    format(symb2, sizeof(symb2), "~g~]");
    randcard2 = 2;
    }
    else if(randcard2 < 2)
    {
    format(symb2, sizeof(symb2), "~y~]");
    randcard2 = 3;
    }
    if(randcard3 >= 5)
    {
    format(symb3, sizeof(symb3), "~b~]");
    randcard3 = 1;
    }
    else if(randcard3 <= 4 && randcard3 >= 2)
    {
    format(symb3, sizeof(symb3), "~g~]");
    randcard3 = 2;
    }
    else if(randcard3 < 2)
    {
    format(symb3, sizeof(symb3), "~y~]");
    randcard3 = 3;
    }
    if(randcard1 == randcard2 && randcard1 == randcard3)
    {
    if(randcard1 > 5)
    {
    prize = 2500;
    }
    if(randcard1 <= 4 && randcard1 >= 2)
    {
    prize = 1500;
    }
    if(randcard1 < 2)
    {
    prize = 500;
    }
    GivePlayerMoney(playerid,prize);
    SBizzInfo[13][sbTill] -= prize;
    ExtortionSBiz(13, prize);
    format(string, sizeof(string), "%s %s %s ~n~~n~~w~~g~$%d",symb1,symb2,symb3, prize);
    }
    else
    {
    format(string, sizeof(string), "%s %s %s ~n~~n~~w~~r~$0",symb1,symb2,symb3);
    }
    GameTextForPlayer(playerid, string, 3000, 3);
    return 1;
    }
    else if (item == 3 && GetPlayerMoney(playerid) > 5000)
    {
    if(PlayerInfo[playerid][pTraderPerk] > 0)
    {
    new skill = 5000 / 100;
    new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
    new payout = 5000 - price;
    GivePlayerMoney(playerid,- payout);
    SBizzInfo[9][sbTill] += payout;
    ExtortionSBiz(13, payout);
    format(string, sizeof(string), "~r~-$%d", payout);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    else
    {
    GivePlayerMoney(playerid,-5000);
    SBizzInfo[13][sbTill] += 5000;
    ExtortionSBiz(13, 5000);
    format(string, sizeof(string), "~r~-$%d", 5000);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    PlayerInfo[playerid][pPhoneBook] = 1;
    format(string, sizeof(string), " Phone Book Purchased you can look up any Players Number !");
    SendClientMessage(playerid, COLOR_GRAD4, string);
    SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /number <id/name>.");
    return 1;
    }
    else if (item == 4 && GetPlayerMoney(playerid) > 500)
    {
    if(PlayerInfo[playerid][pTraderPerk] > 0)
    {
    new skill = 500 / 100;
    new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
    new payout = 500 - price;
    GivePlayerMoney(playerid,- payout);
    SBizzInfo[13][sbTill] += payout;//Hier sind immer die errors
    ExtortionSBiz(13, payout);//Hier sind immer die errors
    format(string, sizeof(string), "~r~-$%d", payout);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    else
    {
    GivePlayerMoney(playerid,-500);
    SBizzInfo[13][sbTill] += 500;//Hier sind immer die errors
    ExtortionSBiz(13, 500);//Hier sind immer die errors
    format(string, sizeof(string), "~r~-$%d", 500);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    gDice[playerid] = 1;
    format(string, sizeof(string), " Dice Purchased you can throw your Dice.");
    SendClientMessage(playerid, COLOR_GRAD4, string);
    SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /dice ");
    return 1;
    }
    else if(item == 5 && GetPlayerMoney(playerid) > 5000)
    {
    if (gLastCar[playerid] != 0)
    {
    if(HireCar[playerid] != 299)
    {
    gCarLock[HireCar[playerid]] = 0;
    UnLockCar(HireCar[playerid]);
    HireCar[playerid] = 299;
    }
    if(PlayerInfo[playerid][pTraderPerk] > 0)
    {
    new skill = 5000 / 100;
    new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
    new payout = 5000 - price;
    GivePlayerMoney(playerid,- payout);
    SBizzInfo[13][sbTill] += payout;//Hier sind immer die errors
    ExtortionSBiz(13, payout);//Hier sind immer die errors
    format(string, sizeof(string), "~r~-$%d", payout);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    else
    {
    GivePlayerMoney(playerid,-5000);
    SBizzInfo[13][sbTill] += 5000;//Hier sind immer die errors
    ExtortionSBiz(13, 5000);//Hier sind immer die errors
    format(string, sizeof(string), "~r~-$%d", 5000);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    SBizzInfo[13][sbProducts]--;//Hier sind immer die errors
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    HireCar[playerid] = gLastCar[playerid];
    format(string, sizeof(string), "Key Purchased You Can Lock Your Last Vehicle.");
    SendClientMessage(playerid, COLOR_GRAD4, string);
    SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /lock ");
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE, " You don't have a Vehicle to fit it to !");
    }
    return 1;
    }
    else if (item == 6 && GetPlayerMoney(playerid) > 10000)
    {
    if(PlayerInfo[playerid][pPhousekey] != 255)
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) == 1 && HireCar[PlayerInfo[playerid][pPhousekey]+1])
    {
    HireCar[i] = 299;
    }
    }
    if(PlayerInfo[playerid][pTraderPerk] > 0)
    {
    new skill = 10000 / 100;
    new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
    new payout = 10000 - price;
    GivePlayerMoney(playerid,- payout);
    SBizzInfo[13][sbTill] += payout;//Hier sind immer die errors
    ExtortionSBiz(13, payout);//Hier sind immer die errors
    format(string, sizeof(string), "~r~-$%d", payout);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    else
    {
    GivePlayerMoney(playerid,-10000);
    SBizzInfo[13][sbTill] += 10000;//Hier sind immer die errors
    ExtortionSBiz(13, 10000);//Hier sind immer die errors
    format(string, sizeof(string), "~r~-$%d", 10000);
    GameTextForPlayer(playerid, string, 5000, 1);
    }
    SBizzInfo[13][sbProducts]--;//Hier sind immer die errors
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    format(string, sizeof(string), "New Locks Purchased.");
    SendClientMessage(playerid, COLOR_GRAD4, string);
    SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /lock ");
    }
    else
    {
    SendClientMessage(playerid, COLOR_WHITE, " You don't have a Vehicle to fit it to !");
    }
    return 1;
    }

    !!nur ein kleiner ausschnitt!!


    SO habe ich es..

    new SBizzInfo[13][sbInfo];


    [sBizz.cfg]

    []0|The State|~w~24/7 Shop|No-one|1498.5371|-1582.8030|13.5469|5|250000|500|0|1|0|500|1000|350[]


    Brauche schnell hilfe xD

  • Ok ich habe es ja schon erhöht

    Habe noch immer Errors ..^^die selben :(

    Einmal editiert, zuletzt von [Markus] ()

  • Ja aber überall wo du es benutzt hast du eine 13 reingeschrieben z.B.


    SBizzInfo[13][sbTill] += payout;


    Das bedeutet das an der Array Stelle 13 mit dem enum Wert "sbTill" (Die Kasse des Bizz) gearbeitet wird.
    Es gibt aber keine Array Stelle 13, du hast beim new eine 13 reingeschrieben das heißt das Array geht von 0 bis 12 was dann 13 Zahlen sind, deswegen die 13...


    Diese geänderte Zeile ist unsinn eigentlich kommt dann dort die SBizz ID rein, z.B. beim kaufen im 24/7 die des 24/7 SBizzes, so kommt das an Geld.
    Und das ist bei den anderen genauso, du hättest das Array nur beim new ändern sollen, nun musste erstmal wieder die ID's richtig zuordnen...

  • Ich habe das ganze nun zum ersten mal ausprobiert und es hat nicht geklappt.
    Ich habe es wie folgt gemacht.


    In der Property.cfg die Daten unten angehangen:

    1816.287475,14.024200,1.200000,-3.400000,999.400024,0,0,0,0,0,0,The State, 2 Room Luxury,250000,0,0,2,1,0,0,1000,1,2045,418,-1,-1,132,3


    Und im Script die Haus Anzahl um 1 erhöhert (Vorher 240):

    new HouseInfo[241][hInfo];


    Jedoch wenn ich zu dem Haus fahre, sehe ich nichts.


    Ich bitte um Antwort, danke!

  • Was ist daran Falsch ich sehe das letze BIZ nicht :(???



    0|Zu Verkaufen|Jack´s Carren|Niemand|-1661.969604|1217.775146|7.250000|5|50000|500|3102500|1|0|100|100|1
    0|Zu Verkaufen|WANG CARS|Niemand|-1968.559814|296.269592|35.171901|1|50000|500|370|1|0|100|100|99999
    0|Zu Verkaufen|Endurons Biz|Niemand|-2016.381469|-37.667701|35.295700|6|50000|5|2830|1|0|100|100|1
    0|Zu Verkaufen|Gas Company|Niemand|-1722.235595|-118.215698|3.548897|5|5000000|1|82691|1|0|100|100|100
    0|Zu Verkaufen|Olli's Strom - Company|Niemand|-2521.005859|-623.331176|132.768997|1|1000000|300|118500|1|0|100|100|100
    0|Zu Verkaufen|Car Delivery|Niemand|1702.400024|-1471.300048|13.546895|5|5000000|0|50000|1|0|90|100|100
    0|Zu Verkaufen|Papas House Upgrade Biz|Niemand|2350.000000|-1411.800048|23.992300|1|50000|0|25809|1|0|95|100|1
    0|Zu Verkaufen|San Andreas News|Niemand|844.656005|-1045.555664|25.430099|6|50000|2|0|1|0|100|100|100
    0|Zu Verkaufen|Tow Car Service|Niemand|2510.600097|-1468.199951|24.023899|5|50000|0|0|1|0|100|100|100

  • InternetInk ...
    Ich habe ein Bizz hinzugefügt, doch wenn ich bei dem /exit schreibe, komme ich woanders raus?
    Habe ein Bizz kopiert, was dir XYZ vom /exit hat, also den Interior ..


    0|The State|Ammunation|No-one|1367.8442|-1279.8199|13.5469|2170.278076|1618.818237|999.976623|5|350000|0|246621|1|1|1215752192|500|100|0 // Eingefügte
    0|The State|Gun Shop 1|No-one|1791.212036|-1164.631713|23.828100|2170.278076|1618.818237|999.976623|5|350000|0|246621|1|1|1215752192|500|100|0 // KOPIERTE



    brauche hilfe ...

  • Wenn du 2 mal das Selbe Interior verwendest musst die sie Mit VirtualWorld separieren.
    Beim betreten SetPlayerVirtualWorld auf die bizzid
    Beim verlassen in die if IsPlayerInRangeOfPoint Abfrage noch && GetPlayerVirtualWorld(playerid) == b hinzufügen.
    Statt b halt die Schleifenvariable und natürlich beim rausgehen auf 0 setzen.

  • Muss ich dies denn in den /enter befehl reinsetzen?


    for(new i = 0; i < sizeof(BizzInfo); i++)
    {
    if (IsPlayerInRangeOfPoint(playerid,3.0,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
    {
    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), "~r~-$%d~n~~w~gib /exit ein~n~um das Gebeude zu verlassen.", 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]);
    SetPlayerVirtualWorld(playerid,BizzInfo[i][bWorld]);
    SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
    PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
    PlayerInfo[playerid][pWorld] = BizzInfo[i][bWorld];
    PlayerInfo[playerid][pLocal] = i+99;
    if(PlayerInfo[playerid][pLocal] == 102)
    {
    GameTextForPlayer(playerid, "~g~Willkommen~w~ In der ~b~Bank", 5000, 1);
    return 1;
    }
    new dood[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dood, sizeof(dood));
    format(string, sizeof(string), "%s bezahlte $%d um das Gebeude 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;
    }
    if(i == 10)
    {
    PaintballPlayers ++;
    PlayerPaintballing[playerid] = 1;
    new rand = random(sizeof(PaintballSpawns));
    SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
    }
    else if(i == 11)
    {
    PlayerKarting[playerid] = 1;
    SendClientMessage(playerid, TEAM_GROVE_COLOR, "Nun kannst du am Kart Rennen teilnehmen, Schnapp dir ein Kart.");
    }
    else
    {
    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);
    }
    }
    }
    if (IsPlayerInRangeOfPoint(playerid,3.0,1073.0619,-344.5148,73.9922))
    {
    if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    SetPlayerInterior(playerid,2);
    SetPlayerPos(playerid,1205.0947,-10.1685,1000.9219);
    PlayerInfo[playerid][pInt] = 2;
    PlayerInfo[playerid][pLocal] = 242;
    }
    }
    else if (IsPlayerInRangeOfPoint(playerid,3.0,2695.6235,-1704.6960,11.8438))
    {
    GameTextForPlayer(playerid, "~w~Willkommen in der 8Ball Arena", 5000, 1);
    SetPlayerInterior(playerid,7);
    SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);
    }
    else if (IsPlayerInRangeOfPoint(playerid,8.0,-2111.5686,-443.9720,38.7344))
    {
    GameTextForPlayer(playerid, "~w~Willkommen in der Dirt Arena", 5000, 1);
    SetPlayerInterior(playerid,4);
    SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);
    }
    else if (IsPlayerInRangeOfPoint(playerid,8.0,-2080.3079,-406.0309,38.7344))
    {
    GameTextForPlayer(playerid, "~w~Willkommen im der Stunt Arena", 5000, 1);
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);
    }


    else if (IsPlayerInRangeOfPoint(playerid,5.0,254.8123,1802.1803,7.4448))
    {
    GameTextForPlayer(playerid, "~w~Willkommen im Bunker", 5000, 1);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,198.1085,1780.7993,7.5693);
    }
    else if(IsPlayerInRangeOfPoint(playerid,3.0,2232.1707,-1159.8075,25.8906))
    {
    GameTextForPlayer(playerid, "~w~Willkommen im arbeitsamt~n~ benutze ~r~/job", 5000, 1);
    SetPlayerInterior(playerid, 15);
    SetPlayerPos(playerid,2216.3401,-1150.5100,1025.7969);
    }
    else if(IsPlayerInRangeOfPoint(playerid,3.0,1462.395751,-1012.391174,26.843799)) // LS Bank
    {
    SetPlayerPos(playerid,389.2655,173.7189,1008.3828);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,6);
    GameTextForPlayer(playerid, "~w~Willkommen in der Los Santos Bank", 5000, 1);
    }
    else if(IsPlayerInRangeOfPoint(playerid,3.0,-1749.432006,867.989318,25.085899)) // SF Bank
    {
    SetPlayerPos(playerid,389.2655,173.7189,1008.3828);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,9);
    GameTextForPlayer(playerid, "~w~Willkommen in der San Fierro Bank", 5000, 1);
    }
    }
    return 1;
    }

  • Hier, wird es aber nicht abgefragt, oder sehe ich was Falsch?


    for(new i = 0; i < sizeof(BizzInfo); i++)
    {
    //printf("Bizz :%d",i);
    if (IsPlayerInRangeOfPoint(playerid,3.0,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]))
    {
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pWorld] = 0;
    SetPlayerPos(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]);
    PlayerInfo[playerid][pLocal] = 255;
    }
    }


    Dies ist der Abschnitt der für die Bizzes gilt.

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