Can't see Text
#1

I did this pawn code...
Код:
    public ScoreUpdate()
    {
            new string[100];
            TextDrawHideForAll(Text:scores);
            format(string,sizeof(string),"~b~Cops:%d ~l~Hitman:%d ~y~Vagos:%d", Copscore,Hitmanscore,Vagosscore);
            scores = TextDrawCreate(271.000000,400.000000,string);
            TextDrawTextSize(scores,200.000000,0.000000);
            TextDrawSetOutline(scores,0);
            TextDrawSetShadow(scores,0);
            TextDrawShowForAll(Text:scores);
    }
No errors, But I can't see the text in game.. Why?
Reply
#2

do you have ScoreUpdate used on anywhere else besides this?
Reply
#3

That might be because you're hiding the textdraw before you format the string.
Reply
#4

I didn't use ScoreUpdate...
I just have
Код:
// FORWARDS

    forward ScoreUpdate();
this at start of my script
Reply
#5

Quote:
Originally Posted by [NoV]LaZ
Посмотреть сообщение
That might be because you're hiding the textdraw before you format the string.
So how can I fix it?
Reply
#6

Quote:
Originally Posted by DragonYancy
Посмотреть сообщение
I didn't use ScoreUpdate...
I just have
Код:
// FORWARDS

    forward ScoreUpdate();
this at start of my script
OnGameModeInit:

Код:
SetTimer("ScoreUpdate", 1000, true);
Reply
#7

THANK YOU SOOO MUCH!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)