Help with dynamic 3d textlabel
#1

When i use the command, the textlabel shows up for a few seconds, then disappears, whats wrong?

This is the code:

pawn Код:
CMD:createtl(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        new tdtext[128];
        if(sscanf(params, "s", tdtext)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /createtl [TextLabel Text]");
       
        new Float:tdx, Float:tdy, Float:tdz;
        GetPlayerPos(playerid, tdx, tdy, tdz);
        format(tdtext, sizeof(tdtext), "%s", tdtext);
        Create3DTextLabel(tdtext, COLOR_YELLOW, tdx, tdy, tdz+1.5, 15.0, -1);
    }
    return 1;
}
Reply
#2

You may have cleared textlabels in a different, recurring function on a timer.
Just check through all your looping functions and make sure they don't undo what you've tried to do with this command
Reply
#3

Quote:
Originally Posted by Rob_Maate
Посмотреть сообщение
You may have cleared textlabels in a different, recurring function on a timer.
Just check through all your looping functions and make sure they don't undo what you've tried to do with this command
No i have not, because this is in a FS and this is the only command in the entire thing so far.
There are no timers or any other commands in this FS.
Reply
#4

Anyone want to help? Please!
Reply
#5

Here Josh this is what I was talking about on TeamSpeak
https://sampforum.blast.hk/showthread.php?tid=166714
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)