SA-MP Forums Archive
How can i do this ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How can i do this ? (/showthread.php?tid=230316)



How can i do this ? - park4bmx - 23.02.2011

SOLVED

i want to close a TEXTDRAWS with a DIALOG ?
and i run out of ideas so i came here for some help
my code
pawn Код:
new Textdraw[128];
format(Textdraw,sizeof(Textdraw),"Textdraw%s",inputtext);
TextDrawDestroy(Textdraw);
but i get a ERROR
Код:
error 035: argument type mismatch (argument 1)



Re: How can i do this ? - Retardedwolf - 23.02.2011

TextDrawDestroy( _:Textdraw );


Re: How can i do this ? - park4bmx - 23.02.2011

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
TextDrawDestroy( _:Textdraw );
NOPE
i still get
Код:
error 035: argument type mismatch (argument 1)



Re: How can i do this ? - Cameltoe - 23.02.2011

pawn Код:
new Text:Textdraw[128];
format(Textdraw,sizeof(Textdraw),"Textdraw%s",inputtext);
TextDrawDestroy(Textdraw);



Re: How can i do this ? - park4bmx - 23.02.2011

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
pawn Код:
new Text:Textdraw[128];
format(Textdraw,sizeof(Textdraw),"Textdraw%s",inputtext);
TextDrawDestroy(Textdraw);
Still Dont Work
Same error + Warning
Код:
warning 213: tag mismatch
error 035: argument type mismatch (argument 1)
pawn Код:
new Text:Textdraw[128]; //
format(Textdraw,sizeof(Textdraw),"Textdraw%s",inputtext); //warning 213: tag mismatch
TextDrawDestroy(Textdraw); //error 035: argument type mismatch (argument 1)



Re: How can i do this ? - Cameltoe - 23.02.2011

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
Still Dont Work
Same error + Warning
Код:
warning 213: tag mismatch
error 035: argument type mismatch (argument 1)
You cant format an textdraw :P

pawn Код:
new Text:TextDraw;
new TextDrawString[128];
format(TextDrawString,sizeof(TextDrawString),"Textdraw%s",inputtext);
TextDrawSetString(TextDraw, TextDrawString);
TextDrawDestroy(Textdraw);



Re: How can i do this ? - park4bmx - 23.02.2011

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
You cant format an textdraw :P
FINNALY thanks ALOT
now i know you cant format a textdraw