03.12.2012, 16:57
Quote:
It does, if inside that callback, you display in a formated string the SeaScore.
|
pawn Код:
public ScoreUpdate() {
TextDrawDestroy(Text:SeaScoreTD);
TextDrawDestroy(Text:SfoScoreTD);
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(ScoreTextSfo,128,"Speical Forces: %i",SfoScore);
SfoScoreTD = TextDrawCreate(425,367,ScoreTextSfo);
TextDrawFont(SfoScoreTD,1);
TextDrawLetterSize(SfoScoreTD,0.7,2);
TextDrawColor(SfoScoreTD,0x0000FFFF);
TextDrawSetOutline(SfoScoreTD,false);
TextDrawSetProportional(SfoScoreTD,true);
TextDrawSetShadow(SfoScoreTD,1);
TextDrawShowForAll(Text:SfoScoreTD);
TextDrawShowForAll(Text:SeaScoreTD); }