3d Text label über Admins[Hilfe]

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
  • Ich wollte ein 3D text über Admins einblenden lassen
    aber aus welchen grund immer wird bei /aaa nichts angezeigt



    if(strcmp(cmd,"/aaa",true) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] == 1339)
    {
    Owner = "ServerOwner";
    SendClientMessage(playerid,COLOR_GREY,"ServerOwner");
    ServerOwner[playerid] = Create3DTextLabel(Owner,0xB9FF00FF,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(ServerOwner[playerid], playerid, 0.0, 0.0, 0.45);
    }
    if(PlayerInfo[playerid][pAdmin] == 1)
    {
    modd = "Moderator]";
    SendClientMessage(playerid,COLOR_GREY,"Moderator");
    Moderator[playerid] = Create3DTextLabel(modd,0xFFFF59FF,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(Moderator[playerid], playerid, 0.0, 0.0, 0.45);
    }
    if(PlayerInfo[playerid][pAdmin] == 1337)
    {
    adm = "Administratorr";
    SendClientMessage(playerid,COLOR_GREY,"Administratorr");
    Administratorr[playerid] = Create3DTextLabel(adm,0xFFB000FF,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(Administratorr[playerid], playerid, 0.0, 0.0, 0.45);
    }
    if(PlayerInfo[playerid][pAdmin] == 1338)
    {
    sup = "SuperAdmin";
    SendClientMessage(playerid,COLOR_GREY,"SuperAdmin");
    SuperAdmin[playerid] = Create3DTextLabel(sup,0xFF0000FF,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(SuperAdmin[playerid], playerid, 0.0, 0.0, 0.45);
    }
    return 1;
    }











    new sup[MAX_PLAYER_NAME];
    new Owner[MAX_PLAYER_NAME];
    new modd[MAX_PLAYER_NAME];
    new adm[MAX_PLAYER_NAME];
    new Text3D:ServerOwner[MAX_PLAYERS];
    new Text3D:SuperAdmin[MAX_PLAYERS];
    new Text3D:Administratorr[MAX_PLAYERS];
    new Text3D:Moderator[MAX_PLAYERS];

    I Love SAMP

  • Versuch mal z.B so :

    ServerOwner[playerid] = Create3DTextLabel(ServerOwner,"Owner",0xB9FF00FF,0,0,0,70.5,1);

  • Zeig ma vielleicht was in diesen Zeilen steht ?! ^^


    mfg: [SGS]Krypton :thumbup:

  • Das war zwar nicht seine Frage, bzw. was er benötigt hätte aber in Ordnung.


    if(strcmp(cmd,"/aaa",true) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] == 1339)
    {
    Owner = "ServerOwner";
    SendClientMessage(playerid,COLOR_GREY,"ServerOwner");
    ServerOwner[playerid] = Create3DTextLabel(Owner,0xB9FF00FF,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(ServerOwner[playerid], playerid, 0.0, 0.0, 0.45);
    }
    if(PlayerInfo[playerid][pAdmin] == 1)
    {
    modd = "Moderator]";
    SendClientMessage(playerid,COLOR_GREY,"Moderator");
    Moderator[playerid] = Create3DTextLabel(modd,0xFFFF59FF,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(modd [playerid], playerid, 0,0,0);
    }
    if(PlayerInfo[playerid][pAdmin] == 1337)
    {
    adm = "Administratorr";
    SendClientMessage(playerid,COLOR_GREY,"Administratorr");
    Administratorr[playerid] = Create3DTextLabel(adm,0xFFB000FF,0,0,0,70.5,1);
    Attach3DTextLabelToPlayer(Administratorr[playerid], playerid, 0,0,0);
    }
    if(PlayerInfo[playerid][pAdmin] == 1338)
    {
    sup = "SuperAdmin";
    SendClientMessage(playerid,COLOR_GREY,"SuperAdmin");
    SuperAdmin[playerid] = Create3DTextLabel("sup",0xa9c4e4FF,0,0,0,50,-1,1);
    Attach3DTextLabelToPlayer(SuperAdmin[playerid], playerid, 0,0,0);
    }
    return 1;
    }


    Probier das mal so.


    Edit:
    Bei New was vergessen?