TextDraw disappear, PLEASE HELP !!! -
tal_peretz - 13.06.2011
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.000000, 380.000000, "_");
TextDrawBackgroundColor(SpeedoStuck[playerid], 255);
TextDrawFont(SpeedoStuck[playerid], 1);
TextDrawLetterSize(SpeedoStuck[playerid], -0.759998, 0.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_DRIVER) TextDrawHideForPlayer(playerid,SpeedoStuck[playerid]);
if(newstate == PLAYER_STATE_DRIVER) TextDrawShowForPlayer(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 !!
Re: TextDraw disappear, PLEASE HELP !!! -
tal_peretz - 14.06.2011
jump please help
just try .....
Re: TextDraw disappear, PLEASE HELP !!! -
tal_peretz - 16.06.2011
jump
Re: TextDraw disappear, PLEASE HELP !!! -
sim_sima - 16.06.2011
Can't see anything wrong there, maybe it could be somewhere else in your script.
Re: TextDraw disappear, PLEASE HELP !!! -
Wesley221 - 16.06.2011
pawn Code:
if(oldstate == PLAYER_STATE_DRIVER) return TextDrawHideForPlayer(playerid,SpeedoStuck[playerid]);
if(newstate == PLAYER_STATE_DRIVER) return TextDrawShowForPlayer(playerid,SpeedoStuck[playerid]);
Try this
Re: TextDraw disappear, PLEASE HELP !!! -
tal_peretz - 16.06.2011
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.......
Re: TextDraw disappear, PLEASE HELP !!! -
Lorenc_ - 16.06.2011
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.
Re: TextDraw disappear, PLEASE HELP !!! -
tal_peretz - 16.06.2011
someone here tell me to do that.. i don't know what he did here.. but I don't think this is the solution.
Re: TextDraw disappear, PLEASE HELP !!! -
0ne - 16.06.2011
"_" symbol in textdraw makes no text at all, i don't see you set a string somewhere
Re: TextDraw disappear, PLEASE HELP !!! -
tal_peretz - 16.06.2011
You sure ? but it's disappear only somtimes not always ........