Dialog buggy + rep for those who help !!!
#4

Yes, thanks!

Try this, please:
PHP код:
command(relato,playerid,params[])
{
    new 
OtherPlayer,Name[24],Reason[128],Msg[145];
    
SendAdminText(playerid,"/relato",params);
    if(
APlayerData[playerid][LoggedIn] == true)
    {
        if(
sscanf(params,"us[128]",OtherPlayer,Reason))return SendClientMessage(playerid,0xFF0000AA,"Uso: \"/relato [id] [causa]");
        if(
APlayerData[OtherPlayer][LoggedIn] == true)
        {
            
SendReportToAdmins(OtherPlayer,Reason);
            
GetPlayerName(OtherPlayer,Name,sizeof Name);
            
format(Msg,sizeof Msg,"Seu relato contra jogador(a) %s foi enviado aos administradores",Name);
            
SendClientMessage(playerid,0x808080FF,Msg);
            for(new 
i;i<50;i++)
            {
                if(
AReports[i][ReportUsed] == true)
                {
                    
format(ReportList,5000,"%s%s: %s - %s\n",ReportList,AReports[i][ReportName],AReports[i][ReportReason],(IsPlayerConnect(i)) ? ("Online") : ("Offline"));
                }
            }
            
ShowPlayerDialog(playeridDialogReportsDIALOG_STYLE_MSGBOX"Relatуrio:"ReportList"OK""Cancelar");
        }
        return 
SendClientMessage(playerid0xff000099"ERRO:O jogador nao estб conectado.");
    }
    return 
1;

If it doesn't work, can you do a screenshot?

- Mencent
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 9 Guest(s)