SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 18/04/2017, 08:06 AM   #1
Bussyman
Big Clucker
 
Join Date: Apr 2017
Posts: 159
Reputation: 0
Default Show, hide textdraw

Hi,

I just met strange bug i have never meet before. I'am hiding textdraw and showing again, but i don't see them like.

TextDrawHideForPlayer(playerid, ... );
TextDrawShowForPlayer(playerid,... );

I'am using this in ondialogresponse, textdraw is hiding, but not showing again, when i use in onplayerstate working, it's totally shit, i don't understand how this can by.
Bussyman is offline   Reply With Quote
Old 18/04/2017, 08:47 AM   #2
Astralis
Guest
 
Posts: n/a
Default Re: Show, hide textdraw

Use Timers to show and hide.
  Reply With Quote
Old 18/04/2017, 09:07 AM   #3
Bussyman
Big Clucker
 
Join Date: Apr 2017
Posts: 159
Reputation: 0
Default Re: Show, hide textdraw

Why? i just need hide and show another, or it's impossible to do?
Bussyman is offline   Reply With Quote
Old 18/04/2017, 09:50 AM   #4
GangstaSunny.
Huge Clucker
 
GangstaSunny.'s Avatar
 
Join Date: Apr 2010
Location: Hamburg - Germany
Posts: 248
Reputation: 34
Default Re: Show, hide textdraw

I also have never meet this problem before. But Astralis is right.
Use a timer (like 100ms for example) to show the textdraw again. This CAN be a solution.
GangstaSunny. is offline   Reply With Quote
Old 18/04/2017, 10:46 AM   #5
Bussyman
Big Clucker
 
Join Date: Apr 2017
Posts: 159
Reputation: 0
Default Re: Show, hide textdraw

i tried even 1000ms not worked.
Bussyman is offline   Reply With Quote
Old 18/04/2017, 11:19 AM   #6
GangstaSunny.
Huge Clucker
 
GangstaSunny.'s Avatar
 
Join Date: Apr 2010
Location: Hamburg - Germany
Posts: 248
Reputation: 34
Default Re: Show, hide textdraw

... well, show code
GangstaSunny. is offline   Reply With Quote
Old 18/04/2017, 03:55 PM   #7
Bussyman
Big Clucker
 
Join Date: Apr 2017
Posts: 159
Reputation: 0
Default Re: Show, hide textdraw

I fixed.
Bussyman is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hide & show help JuzDoiT Scripting Help 7 10/01/2017 03:26 PM
textdraw hide show command SalmaN97 Scripting Help 1 01/05/2015 06:05 PM
[Include] Textdraw show/hide RCON1 Includes 8 29/11/2013 03:24 PM
TextDraw show/hide ancezas Scripting Help 1 07/01/2013 01:10 PM
Textdraw show/hide Wrath2k10 Help Archive 1 27/08/2010 02:16 PM


All times are GMT. The time now is 03:41 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.