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

I'm doing a command / report with the information that players are online or offline, only the second line of dialogue informs properly if the player is online or not, the second line down is all offline, help please?

PHP код:
command(relatoplayeridparams[]) { 
    new 
OtherPlayerName[24], Reason[128], Msg[128]; 
    
SendAdminText(playerid"/relato"params); 
    if (
APlayerData[playerid][LoggedIn] == true
    { 
        if (
sscanf(params"us[128]"OtherPlayerReason)) SendClientMessage(playerid0xFF0000AA"Uso: \"/relato [id] [causa]"); 
        else 
        { 
            if (
APlayerData[OtherPlayer][LoggedIn] == true
            { 
                
SendReportToAdmins(OtherPlayerReason); 
                
GetPlayerName(OtherPlayerNamesizeof(Name)); 
                
format(Msg128"Seu relato contra jogador(a) %s foi enviado aos administradores "Name)); 
                
SendClientMessage(playerid0x808080FFMsg); 
                 
                if (
AReports[0][ReportUsed] == true
                
format(ReportList5000"%s: %s - %s\n"AReports[0][ReportName], AReports[0][ReportReason], IsPlayerConnected(OtherPlayer) ? ("Online") : ("Offline")); 
            for (new 
150i++) 
            { 
                if (
AReports[i][ReportUsed] == true
                { 
                    
format(ReportList5000"%s%s: %s - %s\n"ReportListAReports[i][ReportName], AReports[i][ReportReason], IsPlayerConnected(i) ? ("Online") : ("Offline")); 
                } 
            } 
            
ShowPlayerDialog(playeridDialogReportsDIALOG_STYLE_MSGBOX"Relatуrio:"ReportList"OK""Cancelar"); 
            } 
            else 
                
SendClientMessage(playerid0xff000099"ERRO:O jogador nao estб conectado."); 
        } 
    } 
    else 
        return 
0
     
    return 
1

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)