Help with dynamic 3d textlabel - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with dynamic 3d textlabel (
/showthread.php?tid=299472)
Help with dynamic 3d textlabel -
Joshb93 - 26.11.2011
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;
}
Re: Help with dynamic 3d textlabel -
Rob_Maate - 26.11.2011
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
Re: Help with dynamic 3d textlabel -
Joshb93 - 26.11.2011
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.
Re: Help with dynamic 3d textlabel -
Joshb93 - 26.11.2011
Anyone want to help? Please!
Re: Help with dynamic 3d textlabel -
Oh - 26.11.2011
Here Josh this is what I was talking about on TeamSpeak
https://sampforum.blast.hk/showthread.php?tid=166714