[Ajuda] Comando dialog
#1

Olб!
Alguйm ai pode me ajudar... eu queria depois da 5Є msg de ban mudasse pra uma nova dialog
Code:
CMD:banlist(playerid,params[])
{
	new StringBnP[250],StrctBnP[700];
	PlayerLogado
	PlayerRegistrado
	if(PlayerInfo[playerid][Admin] < 3 && !IsPlayerAdmin(playerid))return AdminLevelErro {
	mysql_query(MysqlDb,"SELECT * FROM `bans`",true);
	if(cache_num_rows() == 0){ SendClientMessage(playerid,Red,"ERRO: Nгo foi possivel localizar nenhum item no banco de dados");}else
	if(cache_num_rows() >=1){
	for(new i=0; i<cache_num_rows(); i++){
	new StNome[100],StIpL[100],StAdminL[100],StMotivoL[100],StDiaL,StMesL,StAnoL;
	cache_get_value(i,"Nome",StName,100); cache_get_value(i,"IP",StIpL,100);
	cache_get_value(i,"Admin",StAdminL,100); cache_get_value(i,"Motivo",StMotivoL,100);
	cache_get_value_int(i,"Dia",StDiaL); cache_get_value_int(i,"Mes",StMesL);
	cache_get_value_int(i,"Yers",StAnoL);
	format(StringBnP,sizeof(StringBnP),"{FF0000}Nome: %s Motivo: %s Admin: %s IP: %s Data: %d/%d/%d\n",StNome,StMotivoL,StAdminL,StIpL,StDiaL,StMesL,StAnoL);
	strcat(StrctBnP,StringBnP);
	ShowPlayerDialog(playerid,DIALOG_BANLIST,DIALOG_STYLE_LIST,"{FF0000}Bans",StringBnP, "Fechar", "");}}}
	return 1;
}
Obrigado!
Reply
#2

Desculpe, ninguйm pode ajudar? ;- (
Reply
#3

qual nova dialog?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)