Textdraw problem
#1

Hey guys,

Im currencly trying to get my textdraws working, but i kinda got stuck.
Atm, i got 2 textdraws. One which should show your kills & deaths, and the other one is for the time left in the round. Now, its only showing ONE textdraw. The kills/deaths one. Ive created both of them, they (should) be visible, since im showing them when the player spawns. Is this a bug, or is it just how im scripting it?
pawn Код:
//OnGameModeInit
    TimeLeft = TextDrawCreate(496.000000, 0.000000, "Time left: ~b~10:00");
    TextDrawBackgroundColor(TimeLeft, 255);
    TextDrawFont(TimeLeft, 1);
    TextDrawLetterSize(TimeLeft, 0.400000, 2.099999);
    TextDrawColor(TimeLeft, -1);
    TextDrawSetOutline(TimeLeft, 0);
    TextDrawSetProportional(TimeLeft, 1);
    TextDrawSetShadow(TimeLeft, 1);
    TextDrawHideForAll(TimeLeft);

//OnPlayerConnect
    MyKills[playerid] = TextDrawCreate(538.000000, 406.000000, "Kills:    ~g~99 ~n~~w~Deaths: ~g~99");
    TextDrawBackgroundColor(MyKills[playerid], 255);
    TextDrawFont(MyKills[playerid], 1);
    TextDrawLetterSize(MyKills[playerid], 0.509999, 1.700000);
    TextDrawColor(MyKills[playerid], -1);
    TextDrawSetOutline(MyKills[playerid], 0);
    TextDrawSetProportional(MyKills[playerid], 1);
    TextDrawSetShadow(MyKills[playerid], 1);
    TextDrawUseBox(MyKills[playerid], 1);
    TextDrawBoxColor(MyKills[playerid], 120);
    TextDrawTextSize(MyKills[playerid], 630.000000, 0.000000);
    TextDrawHideForPlayer(playerid, MyKills[playerid]);
TextDrawShowForPlayer( playerid, TimeLeft );

//OnPlayerSpawn
TextDrawShowForPlayer( playerid, MyKills[playerid] );
Reply


Messages In This Thread
Textdraw problem - by Wesley221 - 15.10.2011, 17:28
Re: Textdraw problem - by [MWR]Blood - 15.10.2011, 17:41
Re: Textdraw problem - by AeroBlast - 15.10.2011, 17:42
Re: Textdraw problem - by [MWR]Blood - 15.10.2011, 17:44
Re: Textdraw problem - by Wesley221 - 15.10.2011, 17:47
Re: Textdraw problem - by [MWR]Blood - 15.10.2011, 17:50
Re: Textdraw problem - by Wesley221 - 16.10.2011, 09:13
Re: Textdraw problem - by Unte99 - 16.10.2011, 10:45
Re: Textdraw problem - by Wesley221 - 16.10.2011, 10:48
Re: Textdraw problem - by Unte99 - 16.10.2011, 11:13

Forum Jump:


Users browsing this thread: 1 Guest(s)