SA-MP Forums Archive
Textdraw not showing in game help ! - 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: Textdraw not showing in game help ! (/showthread.php?tid=648834)



Textdraw not showing in game help ! - Cutiexoxo - 29.01.2018

new Text:helpingtext;

helpingtext = TextDrawCreate(156, 404, "/commands /help .");
TextDrawFont(helpingtext, 2);
TextDrawLetterSize(helpingtext, 0.55, 2.1);
TextDrawColor(helpingtext, 0x000000FF);
TextDrawSetOutline(helpingtext, 1);
TextDrawSetProportional(helpingtext, 1);
TextDrawSetShadow(helpingtext, 2);
TextDrawShowForAll(helpingtext);


Re: Textdraw not showing in game help ! - Flamehaze7 - 29.01.2018

Did you put everything inside OnGamemodeInit?


Re: Textdraw not showing in game help ! - Hrb - 29.01.2018

delete line with: TextDrawShowForAll(helpingtext);

Add this to public OnPlayerConnect or OnPlayerSpawn:

TextDrawShowForPlayer(playerid, helpingtext);

EDIT: Flamehaze7 is right, check that you are creating textdraw in public OnGameModeInit and then u can use what i wrote


Re: Textdraw not showing in game help ! - Cutiexoxo - 29.01.2018

@Flamehaze7 Yes they are already inside OnGamemodeInit thanks @Hrb it worked thanks +Rep Both of you