PlayerText Does not support Sprites? -
Sky™ - 25.03.2015
Greetings!
I use playertext in all textdraws of my project,
but some TextDraw with Sprites they simply bug all other textdraws after entering more than 3 players ...
under 3 players the textdraws do not conflict, after this number the textdraws with Sprites not leave even the rest of the system is loaded ..
below follows the TextDraw that bug ...
pawn Код:
PrisaoTimer[ playerid ][ 0 ] = CreatePlayerTextDraw(playerid,42.000000, 295.000000, "_");
PlayerTextDrawBackgroundColor(playerid,PrisaoTimer[ playerid ][ 0 ], 255);
PlayerTextDrawFont(playerid,PrisaoTimer[ playerid ][ 0 ], 1);
PlayerTextDrawLetterSize(playerid,PrisaoTimer[ playerid ][ 0 ], 0.500000, 2.899999);
PlayerTextDrawColor(playerid,PrisaoTimer[ playerid ][ 0 ], -1);
PlayerTextDrawSetOutline(playerid,PrisaoTimer[ playerid ][ 0 ], 0);
PlayerTextDrawSetProportional(playerid,PrisaoTimer[ playerid ][ 0 ], 1);
PlayerTextDrawSetShadow(playerid,PrisaoTimer[ playerid ][ 0 ], 1);
PlayerTextDrawUseBox(playerid,PrisaoTimer[ playerid ][ 0 ], 1);
PlayerTextDrawBoxColor(playerid,PrisaoTimer[ playerid ][ 0 ], 153);
PlayerTextDrawTextSize(playerid,PrisaoTimer[ playerid ][ 0 ], 119.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,PrisaoTimer[ playerid ][ 0 ], 0);
PrisaoTimer[ playerid ][ 1 ] = CreatePlayerTextDraw(playerid,40.000000, 280.000000, "Timer:");
PlayerTextDrawBackgroundColor(playerid,PrisaoTimer[ playerid ][ 1 ], 255);
PlayerTextDrawFont(playerid,PrisaoTimer[ playerid ][ 1 ], 1);
PlayerTextDrawLetterSize(playerid,PrisaoTimer[ playerid ][ 1 ], 0.250000, 1.300000);
PlayerTextDrawColor(playerid,PrisaoTimer[ playerid ][ 1 ], -1);
PlayerTextDrawSetOutline(playerid,PrisaoTimer[ playerid ][ 1 ], 1);
PlayerTextDrawSetProportional(playerid,PrisaoTimer[ playerid ][ 1 ], 1);
PlayerTextDrawSetSelectable(playerid,PrisaoTimer[ playerid ][ 1 ], 0);
PrisaoTimer[ playerid ][ 2 ] = CreatePlayerTextDraw(playerid,71.000000, 297.000000, "00:00:00");
PlayerTextDrawBackgroundColor(playerid,PrisaoTimer[ playerid ][ 2 ], 255);
PlayerTextDrawFont(playerid,PrisaoTimer[ playerid ][ 2 ], 2);
PlayerTextDrawLetterSize(playerid,PrisaoTimer[ playerid ][ 2 ], 0.200000, 2.000000);
PlayerTextDrawColor(playerid,PrisaoTimer[ playerid ][ 2 ], -1);
PlayerTextDrawSetOutline(playerid,PrisaoTimer[ playerid ][ 2 ], 1);
PlayerTextDrawSetProportional(playerid,PrisaoTimer[ playerid ][ 2 ], 1);
PlayerTextDrawSetSelectable(playerid,PrisaoTimer[ playerid ][ 2 ], 0);
/*PrisaoTimer[ playerid ][ 3 ] = CreatePlayerTextDraw(playerid,46.000000, 296.000000, "ld_grav:timer");
PlayerTextDrawBackgroundColor(playerid,PrisaoTimer[ playerid ][ 3 ], 255);
PlayerTextDrawFont(playerid,PrisaoTimer[ playerid ][ 3 ], 4);
PlayerTextDrawLetterSize(playerid,PrisaoTimer[ playerid ][ 3 ], 0.500000, 1.000000);
PlayerTextDrawColor(playerid,PrisaoTimer[ playerid ][ 3 ], -1);
PlayerTextDrawSetOutline(playerid,PrisaoTimer[ playerid ][ 3 ], 0);
PlayerTextDrawSetProportional(playerid,PrisaoTimer[ playerid ][ 3 ], 1);
PlayerTextDrawSetShadow(playerid,PrisaoTimer[ playerid ][ 3 ], 1);
PlayerTextDrawUseBox(playerid,PrisaoTimer[ playerid ][ 3 ], 1);
PlayerTextDrawBoxColor(playerid,PrisaoTimer[ playerid ][ 3 ], 255);
PlayerTextDrawTextSize(playerid,PrisaoTimer[ playerid ][ 3 ], 21.000000, 21.000000);
PlayerTextDrawSetSelectable(playerid,PrisaoTimer[ playerid ][ 3 ], 0);*/
so does is TextDraw, which works correctly with less than 3 players online
pawn Код:
TMecanico[ 0 ][ playerid ] = CreatePlayerTextDraw(playerid, 360.000000, 372.000000, "_");
PlayerTextDrawBackgroundColor(playerid,TMecanico[ 0 ][ playerid ], 255);
PlayerTextDrawFont(playerid,TMecanico[ 0 ][ playerid ], 1);
PlayerTextDrawLetterSize(playerid,TMecanico[ 0 ][ playerid ], 0.500000, 2.099999);
PlayerTextDrawColor(playerid,TMecanico[ 0 ][ playerid ], -1);
PlayerTextDrawSetOutline(playerid,TMecanico[ 0 ][ playerid ], 0);
PlayerTextDrawSetProportional(playerid,TMecanico[ 0 ][ playerid ], 1);
PlayerTextDrawSetShadow(playerid,TMecanico[ 0 ][ playerid ], 1);
PlayerTextDrawUseBox(playerid,TMecanico[ 0 ][ playerid ], 1);
PlayerTextDrawBoxColor(playerid,TMecanico[ 0 ][ playerid ], 133);
PlayerTextDrawTextSize(playerid,TMecanico[ 0 ][ playerid ], 173.000000, 2.000000);
PlayerTextDrawSetSelectable(playerid,TMecanico[ 0 ][ playerid ], 0);
TMecanico[ 1 ][ playerid ] = CreatePlayerTextDraw(playerid, 216.000000, 377.000000, "~w~Concertando... Aguarde alguns instantes!");
PlayerTextDrawBackgroundColor(playerid,TMecanico[ 1 ][ playerid ], 255);
PlayerTextDrawFont(playerid,TMecanico[ 1 ][ playerid ], 1);
PlayerTextDrawLetterSize(playerid,TMecanico[ 1 ][ playerid ], 0.200000, 1.000000);
PlayerTextDrawColor(playerid,TMecanico[ 1 ][ playerid ], -1);
PlayerTextDrawSetOutline(playerid,TMecanico[ 1 ][ playerid ], 0);
PlayerTextDrawSetProportional(playerid,TMecanico[ 1 ][ playerid ], 1);
PlayerTextDrawSetShadow(playerid,TMecanico[ 1 ][ playerid ], 1);
PlayerTextDrawSetSelectable(playerid,TMecanico[ 1 ][ playerid ], 0);
TMecanico[ 2 ][ playerid ] = CreatePlayerTextDraw(playerid, 177.000000, 372.000000, "~n~");
PlayerTextDrawBackgroundColor(playerid,TMecanico[ 2 ][ playerid ], 255);
PlayerTextDrawFont(playerid,TMecanico[ 2 ][ playerid ], 1);
PlayerTextDrawLetterSize(playerid,TMecanico[ 2 ][ playerid ], 0.500000, 2.099999);
PlayerTextDrawColor(playerid,TMecanico[ 2 ][ playerid ], -1);
PlayerTextDrawSetOutline(playerid,TMecanico[ 2 ][ playerid ], 0);
PlayerTextDrawSetProportional(playerid,TMecanico[ 2 ][ playerid ], 1);
PlayerTextDrawSetShadow(playerid,TMecanico[ 2 ][ playerid ], 1);
PlayerTextDrawUseBox(playerid,TMecanico[ 2 ][ playerid ], 1);
PlayerTextDrawBoxColor(playerid,TMecanico[ 2 ][ playerid ], -16776961);
PlayerTextDrawTextSize(playerid,TMecanico[ 2 ][ playerid ], 168.000000, 3.000000);
PlayerTextDrawSetSelectable(playerid,TMecanico[ 2 ][ playerid ], 0);
/*TMecanico[ 3 ][ playerid ] = CreatePlayerTextDraw(playerid,190.000000, 374.000000, "hud:radar_Modgarage");
PlayerTextDrawBackgroundColor(playerid,TMecanico[ 3 ][ playerid ], 255);
PlayerTextDrawFont(playerid,TMecanico[ 3 ][ playerid ], 4);
PlayerTextDrawLetterSize(playerid,TMecanico[ 3 ][ playerid ], 0.500000, 1.000000);
PlayerTextDrawColor(playerid,TMecanico[ 3 ][ playerid ], -1);
PlayerTextDrawSetOutline(playerid,TMecanico[ 3 ][ playerid ], 0);
PlayerTextDrawSetProportional(playerid,TMecanico[ 3 ][ playerid ], 1);
PlayerTextDrawSetShadow(playerid,TMecanico[ 3 ][ playerid ], 1);
PlayerTextDrawUseBox(playerid,TMecanico[ 3 ][ playerid ], 1);
PlayerTextDrawBoxColor(playerid,TMecanico[ 3 ][ playerid ], 255);
PlayerTextDrawTextSize(playerid,TMecanico[ 3 ][ playerid ], 13.000000, 14.000000);
PlayerTextDrawSetSelectable(playerid,TMecanico[ 3 ][ playerid ], 0);*/
just having a sprite does not work correctly with more than 3 players online ..
want to know if this is a bug in PlayerText function or have something wrong with my TextDraw?