Textdraw isnt updating
#1

I tried abselously everything but nothing helps,whenever someone gets killed the score increases but the textdraw doesnt change.Can anyone please help me before I lose my mind?
pawn Код:
new SeaScore = 0,SfoScore = 0,ScoreTextLeo[24],ScoreTextSin[24];
new Text:SeaScoreTD,Text:SfoScoreTD;

public OnGameModeInit()
{
    format(ScoreTextSin,128,"Seals: %i",SeaScore);
    SeaScoreTD = TextDrawCreate(425,348,ScoreTextSin);
    TextDrawFont(SeaScoreTD,1);
    TextDrawLetterSize(SeaScoreTD,0.7,2);
    TextDrawColor(SeaScoreTD,0xff0000FF);
    TextDrawSetOutline(SeaScoreTD,false);
    TextDrawSetProportional(SeaScoreTD,true);
    TextDrawSetShadow(SeaScoreTD,1);
    format(ScoreTextLeo,128,"Speical Forces: %i",SfoScore);
    SfoScoreTD = TextDrawCreate(425,367,ScoreTextLeo);
    TextDrawFont(SfoScoreTD,1);
    TextDrawLetterSize(SfoScoreTD,0.7,2);
    TextDrawColor(SfoScoreTD,0x0000FFFF);
    TextDrawSetOutline(SfoScoreTD,false);
    TextDrawSetProportional(SfoScoreTD,true);
    TextDrawSetShadow(SfoScoreTD,1);
return 1; }

public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid,Text:SeaScoreTD);
    TextDrawShowForPlayer(playerid,Text:SfoScoreTD);
return 1; }

public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid,playerid,reason);
     
    if(GetPlayerTeam(killerid) == Team_Seals) {
        SeaScore++;
        TextDrawSetString(Text:SeaScoreTD,ScoreTextSin);
        for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { PlayerTextDrawShow(i,PlayerText:SeaScoreTD); } } }

    if(GetPlayerTeam(killerid) == Team_SpeicalForces) {
        SfoScore++;
        TextDrawSetString(Text:SfoScoreTD,ScoreTextLeo);
        for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { PlayerTextDrawShow(i,PlayerText:SfoScoreTD); } } }
   
    return 1;
}
Reply


Messages In This Thread
Textdraw isnt updating - by nuriel8833 - 03.12.2012, 16:28
Re: Textdraw isnt updating - by Konstantinos - 03.12.2012, 16:31
Re: Textdraw isnt updating - by nuriel8833 - 03.12.2012, 16:38
Re: Textdraw isnt updating - by Konstantinos - 03.12.2012, 16:42
Re: Textdraw isnt updating - by nuriel8833 - 03.12.2012, 16:57
Re: Textdraw isnt updating - by Konstantinos - 03.12.2012, 17:02
Re: Textdraw isnt updating - by nuriel8833 - 03.12.2012, 17:09
Re: Textdraw isnt updating - by Konstantinos - 03.12.2012, 17:14

Forum Jump:


Users browsing this thread: 1 Guest(s)