Textdraws messing up
#1

Hi everyone,

Since a few days, my textdraws are messing up..
Like, when going inside a vehicle, it shows a textdraw of my ATM machines, and when i log into my police computer, i get the car textdraws..
I use , for example,
pawn Code:
renttext1[vehicleid] = TextDrawCreate(40.000000, 140.000000, "Rentable Car");
What is going wrong?
Reply
#2

do u need it to b visible for cars only or be visible all the time?
Reply
#3

Show us more of the textdraw code.
Reply
#4

Quote:
Originally Posted by CROSS_Hunter
View Post
do u need it to b visible for cars only or be visible all the time?
No, i already have the code to show it, and to hide it..

Quote:
Originally Posted by HighPitchedVoice
View Post
Show us more of the textdraw code.
ok,
pawn Code:
speeddraw[playerid] = TextDrawCreate(524.000000, 365.000000, "Speed:");
    TextDrawBackgroundColor(speeddraw[playerid], 255);
    TextDrawFont(speeddraw[playerid], 1);
    TextDrawLetterSize(speeddraw[playerid], 0.529999, 1.199998);
    TextDrawColor(speeddraw[playerid], -3394561);
    TextDrawSetOutline(speeddraw[playerid], 1);
    TextDrawSetProportional(speeddraw[playerid], 1);
this is 1 textdraw, it is created on player connect..
pawn Code:
else if(newstate == PLAYER_STATE_DRIVER)
    {
        TextDrawShowForPlayer(playerid, speeddraw[playerid]);
       
    }
a piece from my OnPlayerStateChange

EDIT: i found out, that for playerid 0, the draws appear as they should, but they won't disappear..
for other playerid's, the wrong draw appears, but it will dissappear when needed..
Reply
#5

i have the same problem, my textdraw for my lowrider script is mixing up with the textdraw from the gametime script i have. Did you solve it already ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)