[Ajuda] Chat em textdraw
#1

Olб estou tentando criar um chat em textdraw tudo funciona do jeito que eu quero mas, o histуrico do chat nгo fica em ordem uma mensagem antiga que era para subir fica no mesmo local.
PHP код:
addChatMessage(playerid,string[])
{
    if(
LinhaChat[playerid] >= 9LinhaChat[playerid]=1;
    
format(ChatXiter[playerid][LinhaChat[playerid]],200,"%s",string);
    for(new 
tLinhaChat[playerid]; t++)
    {
        
PlayerTextDrawHide(playerid,ChatCheater[playerid][t]);
        if(!
t)
        {
            
IA_PlayerTextDrawSetString(playeridChatCheater[playerid][t], string);
            
PlayerTextDrawShow(playeridChatCheater[playerid][t]);
        }
        else
        {
              
IA_PlayerTextDrawSetString(playeridChatCheater[playerid][t], ChatXiter[playerid][t]);
               
PlayerTextDrawShow(playeridChatCheater[playerid][t]);
        }
    }
    
LinhaChat[playerid] += 1;
    return 
1;

Reply


Messages In This Thread
Chat em textdraw - by B4dSh33p - 15.02.2018, 15:18
Re: Chat em textdraw - by Locky_ - 15.02.2018, 15:59
Re: Chat em textdraw - by B4dSh33p - 15.02.2018, 17:47
Re: Chat em textdraw - by SpikeCompiler - 15.02.2018, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)