TextDraw disappear, PLEASE HELP !!!
#1

I'm desperate, i try all ....... i built speedometer and everything work, but, sometimes part of them disappear for player [only one player, sometimes more].

Pictures -

Work -


now work -


wird not work -


Pawn Code -

PHP Code:
new Text:SpeedoStuck[MAX_PLAYERS]  = {Text:INVALID_TEXT_DRAW, ...};
OnPlayerConnect -
SpeedoStuck[playerid] = TextDrawCreate(604.000000380.000000"_");
TextDrawBackgroundColor(SpeedoStuck[playerid], 255);
TextDrawFont(SpeedoStuck[playerid], 1);
TextDrawLetterSize(SpeedoStuck[playerid], -0.7599980.199999);
TextDrawColor(SpeedoStuck[playerid], -1);
TextDrawSetOutline(SpeedoStuck[playerid], 0);
TextDrawSetProportional(SpeedoStuck[playerid], 0);
TextDrawSetShadow(SpeedoStuck[playerid], 4);
TextDrawUseBox(SpeedoStuck[playerid], 1);
TextDrawBoxColor(SpeedoStuck[playerid], red);
TextDrawTextSize(SpeedoStuck[playerid], 497.000000, -19.000000);
OnPlayerStateChange
if(oldstate == PLAYER_STATE_DRIVERTextDrawHideForPlayer(playerid,SpeedoStuck[playerid]);
if(
newstate == PLAYER_STATE_DRIVERTextDrawShowForPlayer(playerid,SpeedoStuck[playerid]); 
Of course there are other TextDraws it's just an example.

I think this happens because the load of TextDraws, what to do?

PLEASE HELP !!!!!!! I WORK ON IT FOR A DAYS AND IT'S NOT WORK !!
Reply
#2

jump please help just try .....
Reply
#3

jump
Reply
#4

Can't see anything wrong there, maybe it could be somewhere else in your script.
Reply
#5

pawn Code:
if(oldstate == PLAYER_STATE_DRIVER) return TextDrawHideForPlayer(playerid,SpeedoStuck[playerid]);

if(newstate == PLAYER_STATE_DRIVER) return TextDrawShowForPlayer(playerid,SpeedoStuck[playerid]);
Try this
Reply
#6

but it's block the other things in the public

this is not all the system, there is more for the nitro and the speed car, but it's alot to copy it to here.......
Reply
#7

pawn Code:
new Text:SpeedoStuck[MAX_PLAYERS]  = {Text:INVALID_TEXT_DRAW, ...};
Change that to:

pawn Code:
new Text:SpeedoStuck[MAX_PLAYERS];
This may increase your AMX size and Isn't needed for this.

By the way, you didn't use ShowTextDrawForPlayer in your examples.
Reply
#8

someone here tell me to do that.. i don't know what he did here.. but I don't think this is the solution.
Reply
#9

"_" symbol in textdraw makes no text at all, i don't see you set a string somewhere
Reply
#10

You sure ? but it's disappear only somtimes not always ........
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)