Textdraws messing up - 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: Textdraws messing up (
/showthread.php?tid=366689)
Textdraws messing up -
Jstylezzz - 07.08.2012
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?
Re: Textdraws messing up -
CROSS_Hunter - 07.08.2012
do u need it to b visible for cars only or be visible all the time?
Re: Textdraws messing up -
HighPitchedVoice - 07.08.2012
Show us more of the textdraw code.
Re: Textdraws messing up -
Jstylezzz - 07.08.2012
Quote:
Originally Posted by CROSS_Hunter
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
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..
Re: Textdraws messing up -
AIped - 14.08.2012
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 ?