Textdraw never dissappeares.. what am I doing wrong?
#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


Messages In This Thread
Textdraw never dissappeares.. what am I doing wrong? - by _Khaled_ - 11.09.2012, 00:35
Re: Textdraw never dissappeares.. what am I doing wrong? - by ddnbb - 11.09.2012, 00:39
Re: Textdraw never dissappeares.. what am I doing wrong? - by _Khaled_ - 11.09.2012, 00:40
Re: Textdraw never dissappeares.. what am I doing wrong? - by ddnbb - 11.09.2012, 00:46
Re: Textdraw never dissappeares.. what am I doing wrong? - by _Khaled_ - 11.09.2012, 00:59
Re: Textdraw never dissappeares.. what am I doing wrong? - by _Khaled_ - 11.09.2012, 01:06

Forum Jump:


Users browsing this thread: 2 Guest(s)