Posts: 153
Threads: 18
Joined: Jul 2012
Reputation:
0
I created Textdraws for showing players some like there car speed
but when 2 players joins the textdraw starts blinking and shows another players stats and sometime mines
how can i fix that?
Regards Pulkit
Posts: 1,826
Threads: 52
Joined: Feb 2012
Reputation:
0
Post the code so we can help you out.
Posts: 153
Threads: 18
Joined: Jul 2012
Reputation:
0
TBatt = CreatePlayerTextDraw(playerid,540.000000, 385.000000, "");
PlayerTextDrawAlignment(playerid,TBatt, 2);
PlayerTextDrawLetterSize(playerid,TBatt, 0.399999, 0.590000);
PlayerTextDrawColor(playerid,TBatt, 0xffff00ff);
PlayerTextDrawSetOutline(playerid,TBatt, 1);
PlayerTextDrawSetProportional(playerid,TBatt, 1);
PlayerTextDrawSetShadow(playerid,TBatt, 1);
Posts: 274
Threads: 2
Joined: Nov 2012
Reputation:
0
well when these textdraw will be created?
onplayerconnect or ongamemodeint ?
Posts: 2,187
Threads: 81
Joined: Aug 2011
Reputation:
0
This seems fine, there must be something wrong when you are setting a string for the textdraw for displaying the information. Please share with us, that code too.
Posts: 274
Threads: 2
Joined: Nov 2012
Reputation:
0
well this causes when you create textdraw at different places so try to create all textdraw at 1 function , good to create it in gamemode or onplayerconnect
Posts: 153
Threads: 18
Joined: Jul 2012
Reputation:
0
all are created together in ongamemodeinit
Posts: 274
Threads: 2
Joined: Nov 2012
Reputation:
0
make all texrdraw as global textdraw