Hide all the TextDraws..??
#21

Quote:
Originally Posted by WoodPecker
View Post
This is the only way:
PHP Code:
if(strcmp(cmd,"/hidealltdw",true)== 0)
{
    
TextDrawHideForPlayer(textdraw1);
    
TextDrawHideForPlayer(textdraw2);
    
TextDrawHideForPlayer(textdraw3);
    
TextDrawHideForPlayer(textdraw4);
    return 
1;

Add all your textdraws there.
Giving me this -
pawn Code:
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\SpeedoEN_v1[1].pwn(274) : error 035: argument type mismatch (argument 1)
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\SpeedoEN_v1[1].pwn(275) : error 035: argument type mismatch (argument 1)
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\SpeedoEN_v1[1].pwn(276) : error 035: argument type mismatch (argument 1)
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\SpeedoEN_v1[1].pwn(277) : error 035: argument type mismatch (argument 1)
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\SpeedoEN_v1[1].pwn(278) : error 035: argument type mismatch (argument 1)
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\SpeedoEN_v1[1].pwn(279) : error 035: argument type mismatch (argument 1)
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\SpeedoEN_v1[1].pwn(280) : error 035: argument type mismatch (argument 1)
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\filterscripts\SpeedoEN_v1[1].pwn(283) : error 030: compound statement not closed at the end of file (started at line 272)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.
Reply
#22

The closest solution I've seen so far is the first reply to this thread:
pawn Code:
for( new i = 0; i < 2048; i++ ) // Loop through all possible textdraw IDs
{
   if( i != INVALID_TEXT_DRAW ) continue; // If it's not a valid textdraw, move to the next itteration
   TextDrawHideForAll( Text: i ); // Hide the textdraw
}
To show the textdraws, simply change TextDrawHideForAll to TextDrawShowForAll.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)