Textdraw never dissappeares.. what am I doing wrong?
#1

http://pastebin.com/0BuCmHyK

Title and link explain it all :/
What have I done wrong?
Reply
#2

Try making all the textdraws for players, not global textdraws. It should fix the problem.
Reply
#3

what do you mean?
Reply
#4

pawn Код:
new Text:Textdraw0[MAX_PLAYERS];
pawn Код:
for(new i = 0; i<MAX_PLAYERS; i++) // Under OnGameModeInit.
{
        Textdraw0[i] = TextDrawCreate(30.000000, 119.000000, "Law commands:");
        TextDrawBackgroundColor(Textdraw0[i], 255);
        TextDrawFont(Textdraw0[i], 1);
        TextDrawLetterSize(Textdraw0[i], 0.430000, 1.000000);
        TextDrawColor(Textdraw0[i], 16777215);
        TextDrawSetOutline(Textdraw0[i], 0);
        TextDrawSetProportional(Textdraw0[i], 1);
        TextDrawSetShadow(Textdraw0[i], 1);
        TextDrawUseBox(Textdraw0[i], 1);
        TextDrawBoxColor(Textdraw0[i], 75);
        TextDrawTextSize(Textdraw0[i], 158.000000, 0.000000);
}
pawn Код:
TextDrawHideForPlayer(playerid, Textdraw[playerid]);
Also you can remove show textdraw things under OnPlayerSpawn, as you create them already under OnGameModeInit. Hope this helps.
Reply
#5

doesn't seem to be working..
Reply
#6

Fixed it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)