SA-MP Forums Archive
TextDraw crashes player - 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: TextDraw crashes player (/showthread.php?tid=165830)



TextDraw crashes player - iggy1 - 06.08.2010

Hi, im making a textdaw to show scores in a dmzone. Anyway i used Zamaroht's TextDrawEditor and came up with this.
Top
pawn Код:
new Text:dmscore;
OnFilterScriptInit()
pawn Код:
dmscore = TextDrawCreate(55.000000, 303.000000, "1:1");//i would swap 1:1 for formated text showing scores
TextDrawBackgroundColor(dmscore, 65535);
TextDrawFont(dmscore, 3);
TextDrawLetterSize(dmscore, 0.919999, 3.199999);
TextDrawColor(dmscore, 16843008);
TextDrawSetOutline(dmscore, 0);
TextDrawSetProportional(dmscore, 0);
TextDrawSetShadow(dmscore, 5);
Then i made a command to show scores just to test.
pawn Код:
COMMAND:show(playerid,params[])
{
    TextDrawShowForPlayer(playerid,dmscore);
    return 1;
}
This crashes the player for some reason i can't see im not realy familiar with textdraws note it doesn't crash server just player.
Anyone that can help i'd appreciate it.
Thanks in advance!!!


Re: TextDraw crashes player - ikey07 - 06.08.2010

?? TextDrawBackgroundColor(dmscore, 65535); what color is this?


Re: TextDraw crashes player - iggy1 - 06.08.2010

Hmm never noticed that thats what the textdraw editor came up with :/ thanks for spottting it


Re: TextDraw crashes player - Hiddos - 06.08.2010

It's probably red color.

Did it worked correctly in the textdraw editor?


Re: TextDraw crashes player - Kar - 06.08.2010

65535 is the default colour u get if u didnt specify one