SA-MP Forums Archive
Problem with TextDraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with TextDraw (/showthread.php?tid=660105)



Problem with TextDraw - jewking - 25.10.2018

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);

            }



Re: Problem with TextDraw - Ciandlah - 25.10.2018

What do you want to do with gametext? Repair it?? Ummm


Re: Problem with TextDraw - jewking - 25.10.2018

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


Re: Problem with TextDraw - Ciandlah - 25.10.2018

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


Re: Problem with TextDraw - jewking - 25.10.2018

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.