News feed 'welcome' text not showing properly - 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: News feed 'welcome' text not showing properly (
/showthread.php?tid=336587)
News feed 'welcome' text not showing properly -
2KY - 22.04.2012
It's undernieth the box for some reason..
How it looks:
pawn Code:
new // 'news' cluster
Text:news1, Text:news2, Text:news3;
news1 = TextDrawCreate(370.000000, 5.000000, "Welcome");
TextDrawBackgroundColor(news1, 255);
TextDrawFont(news1, 0);
TextDrawLetterSize(news1, 0.700000, 2.000000);
TextDrawColor(news1, -1);
TextDrawSetOutline(news1, 1);
TextDrawSetProportional(news1, 1);
news2 = TextDrawCreate(381.000000, 30.000000, "lolhi");
TextDrawBackgroundColor(news2, 255);
TextDrawFont(news2, 1);
TextDrawLetterSize(news2, 0.300000, 0.899999);
TextDrawColor(news2, -65281);
TextDrawSetOutline(news2, 1);
TextDrawSetProportional(news2, 1);
news3 = TextDrawCreate(642.000000, -10.000000, "_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~");
TextDrawBackgroundColor(news3, 255);
TextDrawFont(news3, 1);
TextDrawLetterSize(news3, 0.500000, 1.000000);
TextDrawColor(news3, -1);
TextDrawSetOutline(news3, 0);
TextDrawSetProportional(news3, 1);
TextDrawSetShadow(news3, 1);
TextDrawUseBox(news3, 1);
TextDrawBoxColor(news3, -1292372993);
TextDrawTextSize(news3, 360.000000, 0.000000);
pawn Code:
TextDrawShowForPlayer( playerid, news2 );
TextDrawShowForPlayer( playerid, news1 );
TextDrawShowForPlayer( playerid, news3 );
//I've even shown the box last as a sort of debug, and to no avail. Why?
Re: News feed 'welcome' text not showing properly -
2KY - 23.04.2012
Bump.
Re: News feed 'welcome' text not showing properly -
Jows - 23.04.2012
pawn Code:
news3 = TextDrawCreate(0.000000, -10.000000, "_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~");
TextDrawBackgroundColor(news3, 255);
TextDrawFont(news3, 1);
TextDrawLetterSize(news3, 0.500000, 1.000000);
TextDrawColor(news3, -1);
TextDrawSetOutline(news3, 0);
TextDrawSetProportional(news3, 1);
TextDrawSetShadow(news3, 1);
TextDrawUseBox(news3, 1);
TextDrawBoxColor(news3, -1292372993);
TextDrawTextSize(news3, 360.000000, 0.000000);