Beiträge von [BlaZZeR]BirD

    vlt Hilft dir ein BSP aus meinem Script :o
    for(new h = 0; h < sizeof(SBizzInfo); h++)
    {
    if(SBizzInfo[h][sbOwned] == 0)
    {
    new sbizstring[500];
    format(sbizstring, sizeof(sbizstring), "Zu Verkaufen: %s\nPreis: $%d\nLevel %d\n'/buybiz'",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
    sbizsale = Create3DTextLabel(sbizstring,0x006400FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+1,15,0,1);
    AddStaticPickup(1272, 8, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
    pickups++;
    }
    if(SBizzInfo[h][sbOwned] == 1)
    {
    new sbizstring[500];
    format(sbizstring, sizeof(sbizstring), "%s\nBesitzer: %s\nTeilhaber: %s\nEintrittspreis: $%d\nProdukte: %d/%d",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbProducts],SBizzInfo[h][sbMaxProducts]);
    sbizsold = Create3DTextLabel(sbizstring,0x006400FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+1,15,0,1);
    AddStaticPickup(1272, 8, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
    pickups++;
    }
    }

    mach das mal anstatt mit [sb] mit [h]
    format(string, sizeof(string), "==== [sBizz ID: %d] ====\nBesitzer: %s\nPreis: %d$\nEintritt: %d$\nProdukte: %d / %d",sb,SBizzInfo[h][sbOwner],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbProducts],SBizzInfo[h][sbMaxProducts]); SBizzInfo[h][sbText] = Create3DTextLabel(string,COLOR_YELLOW,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],18.0,0,0);


    kannst du mir zeigen wie du den 3d Textlabel updatest wen du das bizz kaufst :o bei mir geht das nicht ...

    Ersetz das hier
    0|Der Staat|Car Renting 1|Niemand|562.405029|-1289.995483|17.248199|5|5000000|0|0|1|0|1000|1000|100
    0|Der Staat|Wang Cars|Niemand|-1968.559814|296.269592|35.171901|5|5000000|0|0|1|0|1000|1000|100
    0|Der Staat|Telefon Company|Niemand|-2016.381469|-37.667701|35.295700|5|5000000|0|0|1|0|1000|1000|100
    0|Der Staat|Tank Company|Niemand|-1722.235595|-118.215698|3.548897|5|5000000|1|0|1|0|1000|1000|100
    0|Der Staat|Strom Company|Niemand|-2521.005859|-623.331176|132.768997|5|1000000|0|0|1|0|1000|1000|100
    0|Der Staat|Car Delivery|Niemand|1702.400024|-1471.300048|13.546895|5|5000000|0|0|1|0|1000|1000|100
    0|Der Staat|House Upgrade|Niemand|2351.890380|-1412.169799|23.992300|5|750000|0|0|1|0|1000|1000|100
    0|Der Staat|CNN Studio|Niemand|844.656005|-1045.555664|25.430099|5|5000000|0|0|1|0|1000|1000|100
    0|Der Staat|Tow Car Service|Niemand|2510.600097|-1468.199951|24.023899|5|5000000|0|0|1|0|1000|1000|100
    0|Der Staat|24/7 Store|Niemand|1205.971557|-1459.673706|13.385993|5|5000000|0|0|1|0|1000|1000|100
    0|Der Staat|Paintball Arena|Niemand|1310.126586|-1367.812255|13.540800|5|5000000|0|0|1|0|1000|1000|100
    0|Der Staat|Kart Track|Niemand|2281.909179|-2364.279052|13.546895|5|5000000|0|0|1|0|100|100|100
    0|Der Staat|Kart Track|Niemand|2281.909179|-2364.279052|13.546895|5|5000000|0|0|1|0|100|100|100
    0|Der Staat|Kart Track|Niemand|2281.909179|-2364.279052|13.546895|5|5000000|0|0|1|0|100|100|100
    0|Der Staat|Kart Track|Niemand|2281.909179|-2364.279052|13.546895|5|5000000|0|0|1|0|100|100|100
    0|Der Staat|Kart Track|Niemand|2281.909179|-2364.279052|13.546895|5|5000000|0|0|1|0|100|100|100
    0|Der Staat|Kart Track|Niemand|2281.909179|-2364.279052|13.546895|5|5000000|0|0|1|0|100|100|100
    0|Der Staat|Kart Track|Niemand|2281.909179|-2364.279052|13.546895|5|5000000|0|0|1|0|100|100|100
    0|Der Staat|Kart Track|Niemand|2281.909179|-2364.279052|13.546895|5|5000000|0|0|1|0|100|100|100
    0|Der Staat|Kart Track|Niemand|2281.909179|-2364.279052|13.546895|5|5000000|0|0|1|0|100|100|100
    0|Der Staat|Kart Track|Niemand|2281.909179|-2364.279052|13.546895|5|5000000|0|0|1|0|100|100|100
    0|Der Staat|Kart Track|Niemand|2281.909179|-2364.279052|13.546895|5|5000000|0|0|1|0|100|100|100


    mit deiner Sbizz.cfg

    achso meinst du das ich guck ma eben in..


    if(!AtATM(playerid))
    {
    SendClientMessage(playerid, COLOR_GREY, "Du bist nicht an einem Bankautomat");
    return 1;
    }
    stock AtATM(playerid)
    {
    for(new atm=0; atm<sizeof(ATMs); atm++)
    {
    if(IsPlayerInRangeOfPoint(playerid,2.5,ATMs[atm][0],ATMs[atm][1],ATMs[atm][2]))
    {
    return 1;
    }
    }
    return 0;
    }
    new Float:ATMs[][3] = {
    {810.565063, -1623.768799, 13.189775},
    {1000.825195, -922.610168, 41.971024},
    {1504.693359, -1706.567749, 13.689775},
    {1928.620850, -1771.269043, 13.189775},
    {1036.071655, -1024.509766, 31.744461},
    {926.909912, -1355.081421, 13.021199},
    {491.439484, -1734.586548, 10.871187},
    {380.780701, -2021.725830, 7.478837},
    {1223.778320, -1744.292603, 13.240016},
    {2105.436035, -1809.228516, 13.197587},
    {2072.053955, -1836.951416, 13.197434},
    {1956.735596, -2186.291016, 13.189775},
    {2394.498047, -1914.865356, 13.189775},
    {2779.040283, -1821.910034, 10.157268},
    {1196.011841, -918.630188, 42.792793},
    {1837.208618, -1421.554077, 13.180400},
    {1033.933228, -1339.474243, 13.344462},
    {-1542.506592, -439.954376, 5.617899},
    {-1967.163086, 278.601196, 34.784546},
    {-1648.825928, 1202.475342, 6.842899},
    {-2627.958740, 1410.379517, 6.686649},
    {-2725.872070, 2369.266602, 71.472687},
    {1712.591553, 1617.526855, 9.625760},
    {2023.364868, 997.874023, 10.438212},
    {2282.881348, 2432.390381, 10.363214},
    {2088.521484, 1510.274780, 10.438212},
    {846.862244, -1803.118652, 13.229680},
    {303.970428, -1419.902466, 13.676299}
    };


    so ist es in meinem Script

    Ich hab doch geschrieben "In der Nähe" das Tankstellen Biz befindet sich eigentlich dierekt vor so einem Haus


    bei G3 sind doch direkt links neben der Startbahn zwei weiße vierecke und genau da muss das sbizz sein wen es da nicht ist dann ka.


    //edit


    So ist das bei mir
    0|Der Staat|Tank Company|Niemand|-1722.235595|-118.215698|3.548897|5|5000000|1|0|1|0|1000|1000|100

    format(string,sizeof(string),"* Fahrzeug für €%d aufgetankt. (Preis pro Liter: €%d)",FillUp,SBizzInfo[2][sbEntranceCost]);

    ,SBizzInfo[2][sbEntranceCost]);
    da kannset den Preis pro liter einstellen also wen du das Sbiz 2 besitzt (denke Tank biz) und den Eintritspreis z.b. auf 1 machst ist der Preis pro liter auch "1".

    Ich habe ein MySQL register/login system von hier: [ SCRIPTING ] MySQL (Installation, Zugriff, Einstellungen, Login & Register Beispiel)
    genommen und versucht in mein GM einzubauen ich habe alles gemacht wie es in der Bespreichung stand aber bekomme immer diese
    Error Codes


    C:\Users\Test\Desktop\MySQL SAMP\gamemodes\GDR.pwn(4153) : error 001: expected token: ";", but found "-identifier-" C:\Users\Test\Desktop\MySQL SAMP\gamemodes\GDR.pwn(40592) : error 028: invalid subscript (not an array or too many subscripts): "SpielerInfo" C:\Users\Test\Desktop\MySQL SAMP\gamemodes\GDR.pwn(40592) : warning 215: expression has no effect C:\Users\Test\Desktop\MySQL SAMP\gamemodes\GDR.pwn(40592) : error 001: expected token: ";", but found "]" C:\Users\Test\Desktop\MySQL SAMP\gamemodes\GDR.pwn(40592) : error 029: invalid expression, assumed zero C:\Users\Test\Desktop\MySQL SAMP\gamemodes\GDR.pwn(40592) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors.


    DeletePVar(playerid,"Eingeloggt");//Zeile 4153
    GetPlayerName(playerid, SpielerInfo[playerid][pName], MAX_PLAYER_NAME);//Zeile 40592


    /edit


    MFG
    BlaZZeR