16.05.2015, 22:57
(
Последний раз редактировалось MattyG; 17.05.2015 в 13:34.
)
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:
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.
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]);
All of the co-ordinates entered are correct, I just don't understand why it doesn't work. Any help is massively appreciated.