weird problem with 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: weird problem with textdraw (
/showthread.php?tid=150293)
weird problem with textdraw -
swredder - 25.05.2010
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
Re: weird problem with textdraw -
swredder - 26.05.2010
someone please help?
Re: weird problem with textdraw -
DJDhan - 26.05.2010
Do other players experience this bug too?
Re: weird problem with textdraw -
swredder - 26.05.2010
yes it occurs to evry1 at the same time
Re: weird problem with textdraw - [03]Garsino - 26.05.2010
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.