Missing textdraws.
#1

Okay so, I have 17 textdraws which are shown but from 17, 4 are missing. I have tried renaming them and no result.

Anyone know why? Thanks.-
Reply
#2

Does it say TextDrawShowForPlayer on those textdraws?
Reply
#3

Uhmm add TextDrawShowForPlayer On OnPlayerConnect look if you forgot one
Reply
#4

Can we see a snippet of the code?
Reply
#5

Yes, of course, I added it, for a reason there are some showing.
pawn Код:
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        TextDrawShowForPlayer(playerid, TD_0);
        TextDrawShowForPlayer(playerid, TD_1);
        TextDrawShowForPlayer(playerid, TD_2);
        TextDrawShowForPlayer(playerid, TD_3);
        TextDrawShowForPlayer(playerid, TD_4);
        TextDrawShowForPlayer(playerid, TD_5);
        TextDrawShowForPlayer(playerid, TD_6);
        TextDrawShowForPlayer(playerid, TD_7);
        TextDrawShowForPlayer(playerid, TD_8);
        TextDrawShowForPlayer(playerid, TD_9);
        TextDrawShowForPlayer(playerid, TD_10);
        TextDrawShowForPlayer(playerid, TD_11);
        TextDrawShowForPlayer(playerid, TD_12);
        TextDrawShowForPlayer(playerid, TD_13);
        TextDrawShowForPlayer(playerid, TD_14);
        TextDrawShowForPlayer(playerid, TD_15);
        TextDrawShowForPlayer(playerid, TD_16);
        TextDrawShowForPlayer(playerid, TD_17);
    }
The rest is pure formatting string into the textdraws under a 1000ms timer.
Reply
#6

Bump. I need a reason for this to occurr.
Reply
#7

Bump.
Reply
#8

can i see how you create the 4 missing td's, if there is any textdrawhide for player in the timer, may i see that also?
Reply
#9

Is it being formatted correctly?
Reply
#10

Quote:
Originally Posted by Donya
Посмотреть сообщение
can i see how you create the 4 missing td's, if there is any textdrawhide for player in the timer, may i see that also?
It's created the same way as other ones! The only TextDrawHideForPlayer is allocated in OnPlayerStateChange.

Quote:
Originally Posted by Norn
Посмотреть сообщение
Is it being formatted correctly?
All the 18 textdraws are being formatted this way:
pawn Код:
// example:
format(szString, 128, "Fuel:~w~ %d", Gas[GetPlayerVehicleID(playerid)]);
TextDrawSetString(TD_7, szString);
P.S: I make the timer 500ms higher and now 2 are missing instead of 4.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)