GameTextForPlayer

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
  • if(pickupid == BKAHeli)
    {
    GameTextForPlayer(playerid, "~b~BKA ~r~/hoch", 5000, 5);
    }
    if(pickupid == Club1)
    {
    GameTextForPlayer(playerid, "~b~Clubeingang ~r~/rein", 5000, 5);
    }
    if(pickupid == Club2)
    {
    GameTextForPlayer(playerid, "~b~Clubdach ~r~/rein", 5000, 5);
    }
    if(pickupid == PD1)
    {
    GameTextForPlayer(playerid, "~b~SFPD", 5000, 5);
    }
    if(pickupid == PD2)
    {
    GameTextForPlayer(playerid, "~b~SFPD", 5000, 5);
    }
    if(pickupid == Praesident)
    {
    GameTextForPlayer(playerid, "~b~With Hous ~r~/rein", 5000, 5);
    }
    if(pickupid == PraesidentHeli)
    {
    GameTextForPlayer(playerid, "~b~Dach ~r~/hoch", 5000, 5);
    }
    if(pickupid == Mopetarena)
    {
    GameTextForPlayer(playerid, "~b~Motorradarena ~r~/rein", 5000, 5);
    }
    if(pickupid == PraesidentHeliInnen)
    {
    GameTextForPlayer(playerid, "~b~With Hous ~r~/runter", 5000, 5);
    }
    if(pickupid == HitmanHeliUnten)
    {
    GameTextForPlayer(playerid, "~b~Dach ~r~/hoch", 5000, 5);
    }
    if(pickupid == HitmanHeliOben)
    {
    GameTextForPlayer(playerid, "~b~Base ~r~/runter", 5000, 5);
    }
    return 1;
    }


    was hier falsch


    weil eintweder kommt garnichts oder es steht am falschen pickup

  • if(pickupid == BKAHeli)
    {
    GameTextForPlayer(playerid, "~b~BKA ~r~/hoch", 5000, 5);
    }
    else if(pickupid == Club1)
    {
    GameTextForPlayer(playerid, "~b~Clubeingang ~r~/rein", 5000, 5);
    }
    else if(pickupid == Club2)
    {
    GameTextForPlayer(playerid, "~b~Clubdach ~r~/rein", 5000, 5);
    }
    else if(pickupid == PD1)
    {
    GameTextForPlayer(playerid, "~b~SFPD", 5000, 5);
    }
    if(pickupid == PD2)
    {
    GameTextForPlayer(playerid, "~b~SFPD", 5000, 5);
    }
    else if(pickupid == Praesident)
    {
    GameTextForPlayer(playerid, "~b~With Hous ~r~/rein", 5000, 5);
    }
    else if(pickupid == PraesidentHeli)
    {
    GameTextForPlayer(playerid, "~b~Dach ~r~/hoch", 5000, 5);
    }
    else if(pickupid == Mopetarena)
    {
    GameTextForPlayer(playerid, "~b~Motorradarena ~r~/rein", 5000, 5);
    }
    else if(pickupid == PraesidentHeliInnen)
    {
    GameTextForPlayer(playerid, "~b~With Hous ~r~/runter", 5000, 5);
    }
    if(pickupid == HitmanHeliUnten)
    {
    GameTextForPlayer(playerid, "~b~Dach ~r~/hoch", 5000, 5);
    }
    else if(pickupid == HitmanHeliOben)
    {
    GameTextForPlayer(playerid, "~b~Base ~r~/runter", 5000, 5);
    }
    return 1;
    }


    versuchs so mal also nur bei dem ersten pickup mit if und danach mit else if so mach das ich immer und funktioniert eig. ziemlich gut

  • jetzt hab ichs so gemacht


    if(pickupid == BKAHeli)
    {
    GameTextForPlayer(playerid, "~b~BKA ~r~/hoch", 5000, 5);
    }
    else if(pickupid == Club1)
    {
    GameTextForPlayer(playerid, "~b~Clubeingang ~r~/rein", 5000, 5);
    }
    else if(pickupid == Club2)
    {
    GameTextForPlayer(playerid, "~b~Clubdach ~r~/rein", 5000, 5);
    }
    else if(pickupid == PD1)
    {
    GameTextForPlayer(playerid, "~b~SFPD", 5000, 5);
    }
    else if(pickupid == PD2)
    {
    GameTextForPlayer(playerid, "~b~SFPD", 5000, 5);
    }
    else if(pickupid == Praesident)
    {
    GameTextForPlayer(playerid, "~b~With Hous ~r~/rein", 5000, 5);
    }
    else if(pickupid == PraesidentHeli)
    {
    GameTextForPlayer(playerid, "~b~Dach ~r~/hoch", 5000, 5);
    }
    else if(pickupid == Mopetarena)
    {
    GameTextForPlayer(playerid, "~b~Motorradarena ~r~/rein", 5000, 5);
    }
    else if(pickupid == PraesidentHeliInnen)
    {
    GameTextForPlayer(playerid, "~b~With Hous ~r~/runter", 5000, 5);
    }
    else if(pickupid == HitmanHeliUnten)
    {
    GameTextForPlayer(playerid, "~b~Dach ~r~/hoch", 5000, 5);
    }
    else if(pickupid == HitmanHeliOben)
    {
    GameTextForPlayer(playerid, "~b~Base ~r~/runter", 5000, 5);
    }
    return 1;


    und beim BKA pickup steht SFPD


    Screen:
    http://www.imagebanana.com/view/dakwwhjf/samp021.png

  • erklär mir das besser
    new BKAHeli;
    new Club1;
    new Club2;
    new Praesident;
    new PD1;
    new PD2;
    new Mopetarena;
    new PraesidentHeli;
    new PraesidentHeliInnen;
    new HitmanHeliUnten;
    new HitmanHeliOben;


    BKAHeli = AddStaticPickup(1239, 1, -2453.669, 504.107, 30.079, -1);
    Club1 = AddStaticPickup(1239, 1, -2624.3577, 1411.8445, 7.0938, -1);
    Club2 = AddStaticPickup(1239, 1, -2661.0859, 1422.5593, 23.8984, -1);
    Praesident = AddStaticPickup(1239, 1, -1783.3092, 572.4855, 35.1641, -1);
    PD1 = AddStaticPickup(1239, 1, -1605.5084, 711.8132, 13.8672, -1);
    PD1 = AddStaticPickup(1239, 1, -1592.8340, 715.9332, -5.2422, -1);
    Mopetarena = AddStaticPickup(1239, 1, -2111.9973, -444.2919, 38.7344, -1);
    PraesidentHeli = AddStaticPickup(1239, 1, -1812.0460, 534.3798, 234.8874, -1);
    PraesidentHeliInnen = AddStaticPickup(1239, 1, 366.5681, 160.0692, 1008.3828, -1);
    HitmanHeliUnten = AddStaticPickup(1239, 1, -1682.1370,1350.5286,7.1722, -1);
    HitmanHeliOben = AddStaticPickup(1239, 1, -1690.6372,1334.4955,16.2976, -1);


    if(pickupid == BKAHeli)
    {
    GameTextForPlayer(playerid, "~b~BKA ~r~/hoch", 5000, 5);
    }
    else if(pickupid == Club1)
    {
    GameTextForPlayer(playerid, "~b~Clubeingang ~r~/rein", 5000, 5);
    }
    else if(pickupid == Club2)
    {
    GameTextForPlayer(playerid, "~b~Clubdach ~r~/rein", 5000, 5);
    }
    else if(pickupid == PD1)
    {
    GameTextForPlayer(playerid, "~b~SFPD", 5000, 5);
    }
    else if(pickupid == PD2)
    {
    GameTextForPlayer(playerid, "~b~SFPD", 5000, 5);
    }
    else if(pickupid == Praesident)
    {
    GameTextForPlayer(playerid, "~b~With Hous ~r~/rein", 5000, 5);
    }
    else if(pickupid == PraesidentHeli)
    {
    GameTextForPlayer(playerid, "~b~Dach ~r~/hoch", 5000, 5);
    }
    else if(pickupid == Mopetarena)
    {
    GameTextForPlayer(playerid, "~b~Motorradarena ~r~/rein", 5000, 5);
    }
    else if(pickupid == PraesidentHeliInnen)
    {
    GameTextForPlayer(playerid, "~b~With Hous ~r~/runter", 5000, 5);
    }
    else if(pickupid == HitmanHeliUnten)
    {
    GameTextForPlayer(playerid, "~b~Dach ~r~/hoch", 5000, 5);
    }
    else if(pickupid == HitmanHeliOben)
    {
    GameTextForPlayer(playerid, "~b~Base ~r~/runter", 5000, 5);
    }
    return 1;
    }

    Einmal editiert, zuletzt von deathrunner ()

  • und wie mach ich das

    Einmal editiert, zuletzt von deathrunner ()

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • du sagst ich ich hab die pickups einer falschen variable zugeordnet


    ja meine frage ist wie ich das ändere


    //edit noch was wenn ich das mit sendclient message mach dann geht es

  • ich schick gleich denn ganzen abteil OnPickUpPickup


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid == BKAHeli)
    {
    GameTextForPlayer(playerid, "~b~BKA ~r~/hoch", 5000, 5);
    }
    else if(pickupid == Club1)
    {
    GameTextForPlayer(playerid, "~b~Clubeingang ~r~/rein", 5000, 5);
    }
    else if(pickupid == Club2)
    {
    GameTextForPlayer(playerid, "~b~Clubdach ~r~/rein", 5000, 5);
    }
    else if(pickupid == PD1)
    {
    GameTextForPlayer(playerid, "~b~SFPD", 5000, 5);
    }
    else if(pickupid == PD2)
    {
    GameTextForPlayer(playerid, "~b~SFPD", 5000, 5);
    }
    else if(pickupid == Praesident)
    {
    GameTextForPlayer(playerid, "~b~With Hous ~r~/rein", 5000, 5);
    }
    else if(pickupid == PraesidentHeli)
    {
    GameTextForPlayer(playerid, "~b~Dach ~r~/hoch", 5000, 5);
    }
    else if(pickupid == Mopetarena)
    {
    GameTextForPlayer(playerid, "~b~Motorradarena ~r~/rein", 5000, 5);
    }
    else if(pickupid == PraesidentHeliInnen)
    {
    GameTextForPlayer(playerid, "~b~With Hous ~r~/runter", 5000, 5);
    }
    else if(pickupid == HitmanHeliUnten)
    {
    GameTextForPlayer(playerid, "~b~Dach ~r~/hoch", 5000, 5);
    }
    else if(pickupid == HitmanHeliOben)
    {
    GameTextForPlayer(playerid, "~b~Base ~r~/runter", 5000, 5);
    }
    return 1;
    }

  • Möglicherweise sind auch einfach die COors falsch.
    Porte dich mal via


    SetPlayerPos(playerid,-2453.669, 504.107, 30.079);


    zu den von dir angegebenem BKA. Weil vllt kommte ja beim Sfpd raus und dann sind einfach nur die Koordinaten falsch.

  • das hab ich schon mal gemacht und wie ich ins bka gegangen bin war ich im sfpd


    aber wiso sind dann bei denn anderen keine Gametext

  • Benutze lieber CreatePickup. Das "returnt" nämlich die objectid.

    mfg RedDragon 8)


    Was ist GFKD?


    Ein revolutionärer Clan, dessen Eröffnung kurz bevorsteht.
    Mehr Informationen folgen bald.