SA-MP Forums Archive
Converting global td function - 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: Converting global td function (/showthread.php?tid=633703)



Converting global td function - NealPeteros - 06.05.2017

I was looking for a function to get the string of a td, and ended up with [this] one. I tried looking for a player td version of this, but found none. Is there any possible way to convert this function in order for the function to be assigned to player td's. Below is the code used

PHP код:
stock TextDrawGetString(Text:textidstring[], size sizeof(string))
{
    
string[0] = '\0';
    
strcat(stringg_TextDrawText[_:textid], size);
    return 
1;
}[
B][/B



Re: Converting global td function - NealPeteros - 06.05.2017

Searched for it in YSF Include, found it there. Fixed