Textdraw Problem
#1

I haven't scripted in a while, so bear with me. Okay, so I have a major problem with my textdraws. I'm trying to create blank boxes with them, but my boxes do not work. Here is some code:

pawn Код:
//Top of script:
new Text:gDuelingTextDraws[11];

//OnGameModeInit:
gDuelingTextDraws[0] = TextDrawCreate(150, 70, " ");
TextDrawUseBox(gDuelingTextDraws[0], 1);
TextDrawSetProportional(gDuelingTextDraws[0], 0);
TextDrawBoxColor(gDuelingTextDraws[0], CHAT_PRIMARY);
TextDrawTextSize(gDuelingTextDraws[0], 340.0, 340.0);

gDuelingTextDraws[1] = TextDrawCreate(147, 67, " ");
TextDrawUseBox(gDuelingTextDraws[1], 1);
TextDrawSetProportional(gDuelingTextDraws[1], 0);
TextDrawBoxColor(gDuelingTextDraws[1], CHAT_BLACK);
TextDrawTextSize(gDuelingTextDraws[1], 346.0, 346.0);

//In my command:
TextDrawShowForPlayer(playerid, gDuelingTextDraws[0]);
TextDrawShowForPlayer(playerid, gDuelingTextDraws[1]);
However, this is how it shows up: click here (Yes, it's those lines in the top of the screen)

All of the co-ordinates entered are correct, I just don't understand why it doesn't work. Any help is massively appreciated.
Reply


Messages In This Thread
[Resolved] Textdraw Problem - by MattyG - 16.05.2015, 22:57
Re: Textdraw Problem - by Boyka96 - 16.05.2015, 23:43
Re: Textdraw Problem - by MattyG - 17.05.2015, 11:09
Re: Textdraw Problem - by Virtual1ty - 17.05.2015, 13:56
Re: Textdraw Problem - by Vitos - 17.05.2015, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)