Problem with TextDraw
#1

https://imgur.com/gG31Bkp
Why does it duplicate "signal" as GameTextForPlayer
How can i repait it?
pawn Код:
if(SignalStrength(i,ActualStation[i])==0)
            {
               
                TextDrawSetString(Text:PhoneTDbox[14][i] ,"~l~|||||");
                SetPVarInt(i, "Signal", 0);
                if(GetPVarInt(i, "Mobile") != INVALID_MAXPL && GetPVarInt(i, "PhoneState") > 0  && GetPVarInt(i, "Dead") == 0) cmd_hangup(i, "");
            }
            else if(SignalStrength(i,ActualStation[i])==1)
            {
                TextDrawSetString(Text:PhoneTDbox[14][i] ,"~r~|~l~||||");
                SetPVarInt(i, "Signal", 1);
            }
            else if(SignalStrength(i,ActualStation[i])==2)
            {
                TextDrawSetString(Text:PhoneTDbox[14][i] ,"~r~||~l~|||");  
                SetPVarInt(i, "Signal", 2);
            }
            else if(SignalStrength(i,ActualStation[i])==3)
            {
                TextDrawSetString(Text:PhoneTDbox[14][i] ,"~r~|||~l~||");
                SetPVarInt(i, "Signal", 3);

            }
            else if(SignalStrength(i,ActualStation[i])==4)
            {
                TextDrawSetString(Text:PhoneTDbox[14][i] ,"~r~||||~l~|");
                SetPVarInt(i, "Signal", 4);

            }
            else if(SignalStrength(i,ActualStation[i])==5)
            {
                TextDrawSetString(Text:PhoneTDbox[14][i] ,"~r~|||||~l~");
                SetPVarInt(i, "Signal", 5);

            }
Reply
#2

What do you want to do with gametext? Repair it?? Ummm
Reply
#3

I mean I don't know why it appears.
Because i didnt call this function.
And i want to remove it.
Reply
#4

Do you want to have a timer? So that once it is called after like a few secs it closes ? It also should not show up unless you call it. Show the whole signal code
Reply
#5

It's about ~500 lines.
So I know that I don't call GameText.
As I think I do something wrong with that TD, but I dont know that it is.
Maybe someone faced with a similar.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)