TextDraw crashes player
#1

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!!!
Reply
#2

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

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

It's probably red color.

Did it worked correctly in the textdraw editor?
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)