SA-MP Forums Archive
Adding string to a Textdraw - 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: Adding string to a Textdraw (/showthread.php?tid=596646)



Adding string to a Textdraw[Fixed] - Mistermaru - 20.12.2015

Thank you guys for your help, I fixed it!


Re: Adding string to a Textdraw - ikey07 - 20.12.2015

Make those textdraws at OnGameModeInit, and under OnPlayerSpawn only update the string ( TextDrawSetString )


Re: Adding string to a Textdraw - Mistermaru - 20.12.2015

Quote:
Originally Posted by ikey07
Посмотреть сообщение
Make those textdraws at OnGameModeInit, and under OnPlayerSpawn only update the string ( TextDrawSetString )
Okey I did it but now it replaces it instead of adding a line under it. You know how to do that?


Re: Adding string to a Textdraw - ikey07 - 20.12.2015

at the top

new GlobalNames[256];

format(GlobalNames,sizeof(GlobalNames),"%s",Player Name(playerid));


TextDrawSetString(TD,GlobalNames);




format(GlobalNames,sizeof(GlobalNames),"%s%s",Glob alNames,PlayerName(playerid));


TextDrawSetString(TD,GlobalNames);


something like this?


Re: Adding string to a Textdraw - Mistermaru - 20.12.2015

Alright thanks I'll try it!