TextDraw problem
#2

Give this a try
pawn Код:
new DeathsCount = 30;

public OnGameModeInit()
{
    DeathCounter = TextDrawCreate(10.0, 130.0, "Victims so far: ~n~Needed for next bombsmuggle: 30");
    TextDrawUseBox(DeathCounter, 0);
    TextDrawColor(DeathCounter, 0x008040FF );
    TextDrawSetOutline(DeathCounter, 1);
    TextDrawAlignment(DeathCounter, 1);
    TextDrawLetterSize(DeathCounter, 0.850, 2.000);
    return 1;
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, DeathCounter);
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    static
        killstr[52];
       
    DeathsCount--;
    format(killstr, 4, "Victims so far: ~n~Needed for next bombsmuggle:%d", DeathsCount);
    TextDrawSetString(DeathCounter, killstr);//set the string here
    if(DeathsCount == 0)
    {
        SetCheckpointForAll(cp1,681.3374,-463.3429,22.5705,2.0);
    }
    return 1;
}
That should be better.
Reply


Messages In This Thread
TextDraw problem - by BlackWolf120 - 09.12.2010, 17:43
Re: TextDraw problem - by iggy1 - 09.12.2010, 19:33
Re: TextDraw problem - by BlackWolf120 - 09.12.2010, 19:46
Re: TextDraw problem - by iggy1 - 09.12.2010, 19:48
Re: TextDraw problem - by CyNiC - 09.12.2010, 19:51
Re: TextDraw problem - by BlackWolf120 - 09.12.2010, 20:20
Re: TextDraw problem - by admantis - 09.12.2010, 22:52
Re: TextDraw problem - by BlackWolf120 - 12.12.2010, 00:12
Re: TextDraw problem - by The_Moddler - 12.12.2010, 01:06
Re: TextDraw problem - by BlackWolf120 - 12.12.2010, 01:11

Forum Jump:


Users browsing this thread: 2 Guest(s)