weird problem with textdraw
#1

ok, in my server i have random textdraws with funfacts but for some reason it gets bugged sometimes if its bugged the textdraw looks like this:



if its normal:


my codes:

Код:
	ShadowsRandom = TextDrawCreate(2.000000,435.000000,"[FACT] All US Presidents have worn glasses. Some just didn't like being seen wearing them in public.");
	TextDrawBackgroundColor(ShadowsRandom, -1);
	TextDrawFont(ShadowsRandom, 1);
	TextDrawLetterSize(ShadowsRandom, 0.320000, 1.300000);
	TextDrawColor(ShadowsRandom,0xffffffff);
	TextDrawSetOutline(ShadowsRandom, 0);
	TextDrawSetProportional(ShadowsRandom, 1);
	TextDrawSetShadow(ShadowsRandom, 0);
	TextDrawUseBox(ShadowsRandom, 1);
	TextDrawBoxColor(ShadowsRandom, 0xA0000033);
	TextDrawTextSize(ShadowsRandom, 640.000000, -85.000000);
Код:
public RandomMessage()
{
		TextDrawHideForAll(ShadowsRandom);
    TextDrawSetString(ShadowsRandom, RandomMessages[random(sizeof(RandomMessages))]);
		TextDrawShowForAll(ShadowsRandom);
    return 1;
}
and

Код:
new RandomMessages[104][91] =
{
	{"[INFO] Remember, use /help before asking anyone else for assistance."},
	{"[INFO] Killing at Stunt Parks is not allowed!"},
	};
on top of my script (i actually got 103 fun facts but couldnt copy them all)

i would really appriciate it if someone could help cause i cand find the solution
Reply
#2

someone please help?
Reply
#3

Do other players experience this bug too?
Reply
#4

yes it occurs to evry1 at the same time
Reply
#5

pawn Код:
new RandomMessages[104][91] =
{
    {"[INFO] Remember, use /help before asking anyone else for assistance."},
    {"[INFO] Killing at Stunt Parks is not allowed!"},
};
try adding a couple of "~n~" infront of the text.
Like

pawn Код:
new RandomMessages[104][91] =
{
    {"~n~ ~n~ [INFO] Remember, use /help before asking anyone else for assistance."},
    {"~n~ ~n~ [INFO] Killing at Stunt Parks is not allowed!"},
};
(Remove or add more ~n~'s if needed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)