SA-MP Forums Archive
Missing textdraws. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Missing textdraws. (/showthread.php?tid=256260)



Missing textdraws. - admantis - 19.05.2011

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.-


Re: Missing textdraws. - Snipa - 19.05.2011

Does it say TextDrawShowForPlayer on those textdraws?


Re : Missing textdraws. - Naruto_Emilio - 19.05.2011

Uhmm add TextDrawShowForPlayer On OnPlayerConnect look if you forgot one


Re: Missing textdraws. - grand.Theft.Otto - 19.05.2011

Can we see a snippet of the code?


Respuesta: Missing textdraws. - admantis - 19.05.2011

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.


Respuesta: Missing textdraws. - admantis - 20.05.2011

Bump. I need a reason for this to occurr.


Re: Missing textdraws. - admantis - 21.05.2011

Bump.


Re: Missing textdraws. - Donya - 21.05.2011

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?


Re: Missing textdraws. - Norn - 21.05.2011

Is it being formatted correctly?


Re: Missing textdraws. - admantis - 21.05.2011

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.