Taxischild Probleme

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
  • Hi,,


    Die Taxischilder spawnen nicht auf dem Dach.



    switch(dialogid)
    {
    case DIALOG_TAXISCHILD:
    {
    if(response)
    {
    if(listitem == 0)
    {
    new text[128];
    SendClientMessage(playerid, COLOR_YELLOW, "Du hast dir ein Taxischild gespawnt!");
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(text, sizeof(text), "San Andreas Taxi");
    TaxiText[playerid] = CreateDynamic3DTextLabel(text,0x490830FF,0.0,0.0,0.0,20.0,INVALID_PLAYER_ID);
    Taxischild[playerid] = CreateObject(19311, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(Taxischild[playerid], TaxiMobil[playerid], -0.00160, 0.05440, 0.83080, 0.00000, 0.00000, 0.00000);
    }
    if(listitem == 1)
    {
    new text[128];
    SendClientMessage(playerid, COLOR_YELLOW, "Du hast dir ein Taxischild gespawnt!");
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(text, sizeof(text), "San Andreas Taxi");
    TaxiText[playerid] = CreateDynamic3DTextLabel(text,0x490830FF,0.0,0.0,0.0,20.0,INVALID_PLAYER_ID);
    Taxischild[playerid] = CreateObject(19310, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(Taxischild[playerid], TaxiMobil[playerid], -0.00160, 0.05440, 0.83080, 0.00000, 0.00000, 0.00000);
    }
    if(listitem == 2)
    {
    new text[128];
    SendClientMessage(playerid, COLOR_YELLOW, "Du hast dir ein Taxischild gespawnt!");
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(text, sizeof(text), "San Andreas Taxi");
    TaxiText[playerid] = CreateDynamic3DTextLabel(text,0x490830FF,0.0,0.0,0.0,20.0,INVALID_PLAYER_ID);
    Taxischild[playerid] = CreateObject(19309, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(Taxischild[playerid], TaxiMobil[playerid], -0.00160, 0.05440, 0.83080, 0.00000, 0.00000, 0.00000);
    }
    if(listitem == 3)
    {
    new text[128];
    SendClientMessage(playerid, COLOR_YELLOW, "Du hast dir ein Taxischild gespawnt!");
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(text, sizeof(text), "San Andreas Taxi");
    TaxiText[playerid] = CreateDynamic3DTextLabel(text,0x490830FF,0.0,0.0,0.0,20.0,INVALID_PLAYER_ID);
    Taxischild[playerid] = CreateObject(19308, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(Taxischild[playerid], TaxiMobil[playerid], -0.00160, 0.05440, 0.83080, 0.00000, 0.00000, 0.00000);
    }
    if(listitem == 4)
    {
    DestroyObject(Taxischild[playerid]);
    DestroyDynamic3DTextLabel(Text3D:TaxiText[playerid]);
    }
    }
    }
    }