SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 25/03/2015, 12:25 AM   #1
Sky
High-roller
 
Sky's Avatar
 
Join Date: Aug 2012
Location: Apple Computer
Posts: 1,782
Reputation: 351
Default PlayerText Does not support Sprites?

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 Code:
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 Code:
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?
Sky is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PlayerText lost13 Русский/Russian 17 25/11/2014 07:46 AM
ESC On click playertext GuyYahood1 Scripting Help 1 17/11/2014 09:31 PM
PlayerText tag saamp Scripting Help 1 22/08/2013 11:15 AM
playertext vs textdraw Glad2BeHere Scripting Help 7 17/01/2013 07:42 PM
PlayerText Commands Fugative. Help Archive 7 26/02/2010 07:24 AM


All times are GMT. The time now is 02:07 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.