[Ajuda] Dialog
#2

Код:
COMMAND:admins(playerid, params[])
{
	new ss[2500];
	for(new i; i < MAX_PLAYERS; i++)
	{
		new LevelAdmin[128], StatusAdmin[128];
		// Trabalhando, Jogando ou Ausente
		if(PlayerInfo[i][Trabalhando] == 1)
		{
			LevelAdmin = "Trabalhando";
		}
		if(PlayerInfo[i][Trabalhando] == 0)
		{
			StatusAdmin = "Jogando";
		}
		if(PlayerInfo[i][Trabalhando] == 2)
		{
			StatusAdmin = "Ausente";
		}
		//
		if(PlayerInfo[i][Administrador] == 1)
		{
			LevelAdmin = "Moderador [Level: 1]";
		}
		if(PlayerInfo[i][Administrador] == 2)
		{
			LevelAdmin = "Administrador [Level: 2]";
		}
		if(PlayerInfo[i][Administrador] == 3)
		{
			LevelAdmin = "Administrador - Master [Level: 3]";
		}
		if(PlayerInfo[i][Administrador] == 4)
		{
			LevelAdmin = "Administrador - Sub-Dono [Level: 4]";
		}
		if(PlayerInfo[i][Administrador] == 5)
		{
			LevelAdmin = "Administrador - Dono [Level: 5]";
		}
		if(IsPlayerConnected(i))
		{
			if(PlayerInfo[i][Administrador] > 5)
			{
				GetPlayerName(i, Jogador, sizeof(Jogador));
				format(ss, sizeof(ss), "%s\n%s:  %s {eb6565} (%s)", ss, Jogador, LevelAdmin, StatusAdmin);
			}
		}
	}
	if(ss[0] == EOS) format(ss, sizeof(ss), "Nenhum admin online");
	ShowPlayerDialog(playerid, 1443, DIALOG_STYLE_MSGBOX, "Administradores online:", ss, "Fechar", "");
	return true;
}
Faltava considerar o valor antigo da string.
Reply


Messages In This Thread
Dialog - by ThuuGLif3 - 12.01.2017, 19:54
Re: Dialog - by RodrigoMSR - 12.01.2017, 20:13
Re: Dialog - by Whoo - 12.01.2017, 20:21
Re: Dialog - by ThuuGLif3 - 12.01.2017, 20:24
Re: Dialog - by hannzika - 12.01.2017, 20:25

Forum Jump:


Users browsing this thread: 1 Guest(s)