09.06.2016, 13:57
Hi i have a new bug with when players like over 10 textdrow in server hide and not show until server restart for example textdrow for odometer or jail time and ... how can i fix this?
public OnPlayerLogin(playerid)
{
if(IsPlayerConnected(playerid))
/*----------------------------------------------------------------------------*/
FuelTextDraw[playerid] = TextDrawCreate(532.000000, 250.000000, "Fuel: %");
TextDrawAlignment(FuelTextDraw[playerid], 1);
TextDrawBackgroundColor(FuelTextDraw[playerid], 255);
TextDrawFont(FuelTextDraw[playerid], 2);
TextDrawLetterSize(FuelTextDraw[playerid], 0.200000, 1.200000);
TextDrawColor(FuelTextDraw[playerid], -1);
TextDrawSetOutline(FuelTextDraw[playerid], 1);
TextDrawSetProportional(FuelTextDraw[playerid], 1);
TextDrawSetShadow(FuelTextDraw[playerid], 1);
/*----------------------------------------------------------------------------*/
JailTextDraw[playerid] = TextDrawCreate(480.000000, 400.000000, "");
TextDrawAlignment(JailTextDraw[playerid], 1);
TextDrawBackgroundColor(JailTextDraw[playerid], 255);
TextDrawFont(JailTextDraw[playerid], 2);
TextDrawLetterSize(JailTextDraw[playerid], 0.250000, 1.200000);
TextDrawColor(JailTextDraw[playerid], -1);
TextDrawSetOutline(JailTextDraw[playerid], 1);
TextDrawSetProportional(JailTextDraw[playerid], 1);
TextDrawSetSelectable(JailTextDraw[playerid], 0);
TextDrawSetShadow(JailTextDraw[playerid], 1);
/*----------------------------------------------------------------------------*/
KiloTextDraw[playerid] = TextDrawCreate(532.000000, 270.000000, "Kilometer: Km");
TextDrawAlignment(KiloTextDraw[playerid], 1);
TextDrawBackgroundColor(KiloTextDraw[playerid], 255);
TextDrawFont(KiloTextDraw[playerid],2);
TextDrawLetterSize(KiloTextDraw[playerid], 0.200000, 1.200000);
TextDrawColor(KiloTextDraw[playerid], -1);
TextDrawSetOutline(KiloTextDraw[playerid], 1);
TextDrawSetProportional(KiloTextDraw[playerid], 1);
TextDrawSetShadow(KiloTextDraw[playerid], 1);
TextDrawSetSelectable(KiloTextDraw[playerid], 0);
/*----------------------------------------------------------------------------*/
ExamTD[playerid] = TextDrawCreate(532.000000, 270.000000, "1/40");
TextDrawLetterSize(ExamTD[playerid], 0.200000, 1.200000);
TextDrawAlignment(ExamTD[playerid], 1);
TextDrawColor(ExamTD[playerid], -1);
TextDrawSetShadow(ExamTD[playerid], 1);
TextDrawSetOutline(ExamTD[playerid], 1);
TextDrawBackgroundColor(ExamTD[playerid], 255);
TextDrawFont(ExamTD[playerid], 2);
TextDrawSetProportional(ExamTD[playerid], 1);
return 1;
}
public OnPlayerConnect(playerid)
{
/*----------------------------------------------------------------------------*/
SpeedoTextDraw[playerid] = TextDrawCreate(532.000000, 260.000000, "Speed: 0 Km/h");
TextDrawAlignment(SpeedoTextDraw[playerid], 1);
TextDrawBackgroundColor(SpeedoTextDraw[playerid], 255);
TextDrawFont(SpeedoTextDraw[playerid], 2);
TextDrawLetterSize(SpeedoTextDraw[playerid], 0.200000, 1.200000);
TextDrawColor(SpeedoTextDraw[playerid], -1);
TextDrawSetOutline(SpeedoTextDraw[playerid], 1);
TextDrawSetProportional(SpeedoTextDraw[playerid], 1);
TextDrawSetShadow(SpeedoTextDraw[playerid], 1);
return 1;
}
this is my textdrow codes
Hi i have a new bug with when players like over 10 textdrow in server hide and not show until server restart for example textdrow for odometer or jail time and ... how can i fix this? |