TEXTDRAW
#1

Where did I go wrong?
Because I use the command it works correctly, but at the time of being deleted over time it does not Add, it generates another that is duplicated in the corner!

Then what is on the Screen of the middle Deleta, but it was not to be the one on the left corner.

https://i.imgur.com/pVMhEgh.png

PHP код:
new Text:ANN[MAX_PLAYERS];
forward ApagarTexto(playerid); 
PHP код:
for(new i=0i<GetMaxPlayers(); i++)
    {
        
ANN[i] = TextDrawCreate(218.000000235.000000" ");
        
TextDrawBackgroundColor(ANN[i], 255);
        
TextDrawFont(ANN[i], 1);
        
TextDrawLetterSize(ANN[i], 0.5000002.099999);
        
TextDrawColor(ANN[i], -1);
        
TextDrawSetOutline(ANN[i], 1);
        
TextDrawSetProportional(ANN[i], 1);
    } 
PHP код:
    if(strcmp(cmd"/ann"true) == 0)
    {
        new 
aname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridanameMAX_PLAYER_NAME);
           
format(file2sizeof(file2), PASTA_CONTASaname);
           
strmid(tmpcmdtext4strlen(cmdtext));
           
        if(!
strlen(tmp))
        {
            
SendClientMessage(playeridVermelho" | ERRO | Digite: /Ann [Texto]");
            return 
1;
         }
         
          for(new 
i=0i<MAX_PLAYERSi++)
        {
            
format(stringsizeof(string), "~r~#~w~%s ~r~#",tmp);
            
TextDrawSetString(ANN[i], string);
            
TextDrawShowForPlayer(iANN[i]);
            
SetTimerEx("ApagarTexto",5000,false,"i",i);
        }
        return 
1;
    } 
PHP код:
public ApagarTexto()
{
    foreach(
Player,i)
    {
        
TextDrawHideForPlayer(iANN[i]);
        
TextDrawShowForPlayer(iANN[i]);
    }
    return 
1;

In the server test normal operation, in the Host already I'm bugged like this!
Reply


Messages In This Thread
TEXTDRAW - by Geremias1533 - 16.01.2019, 20:36
Re: TEXTDRAW - by ApolloScripter - 16.01.2019, 22:59
Re: TEXTDRAW - by Pottus - 17.01.2019, 03:47

Forum Jump:


Users browsing this thread: 1 Guest(s)