Simple CreateDynamic3DTextLabel problem
#1

pawn Код:
CMD:aduty(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 2) return 0;
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if(PlayerInfo[playerid][pAdminDuty] == 0)
    {

        SendClientMessageEx(playerid, COLOR_YELLOW, "You are now on administrative duty! Remember to check /reports!");
        DestroyDynamic3DTextLabel(Aduty3D[playerid]);
        Aduty3D[playerid] = CreateDynamic3DTextLabel("blabla",COLOR_RED,X,Y,Z,4.0,playerid);}
    }
    else
    {
        DestroyDynamic3DTextLabel(Aduty3D[playerid]);
        //SendClientMessageEx(playerid, COLOR_RED, "You are now off admin duty!");
    }
    return 1;
}
Ignore the if in this statement, the Dynamic Text always ONLY appears attached to ID 0, whether he's an administrator or not, can anyone help me?
Again, the "IF" statements are NOT the problem here, yes, they are illogical but that's because I've deleted the code.
And the code that I've deleted has nothing to do with the 3DText labels.
Reply
#2

Your labels are messed up try this:
aDuty3D[playerid] = CreateDynamic3DTextLabel("blabla", COLOR_RED, 0, 0, -20, 25, playerid);

+Rep me
Reply
#3

Didn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)