SA-MP Forums Archive
get textdraw string - 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: get textdraw string (/showthread.php?tid=388551)



get textdraw string - EV007 - 29.10.2012

Is there such a possibility to get textdraw string? I've been looking for something similar but couldn't find anything, is it at least possible?


Re: get textdraw string - Niko_boy - 29.10.2012

yes very much but for that you will need custom function
e.g.
pawn Код:
new TextString[MAX_TEXTDRWS][256];

stock TextDrawSetStringEx( Text:textid, string[] )
{
    TextDrawSetString( textid, string );
    format( TextString[textid], SOMESIZE, string );
}
please see: totaly untested code and i am sure the above code will not even work , but yes thats just a example through which you can make your need fulfilled


Re: get textdraw string - EV007 - 29.10.2012

yeah i know what you mean, any other ways available?