[Ajuda] DIALOG PARA /MODERADORES
#1

Olб a todos, Estou inciando agora e nгo entendendo muito, estou tentando ir aprendendo aos poucos, Queria saber se alguma alma caridosa tem como me ajudar a como colocar o comando /moderadores em dialog, Quem estiver disposto a ajuda agradeзo muito.

Код:
 if(strcmp(cmdtext, "/Moderadores", true) == 0){
	SendClientMessage(playerid,0x00FF40AA, ".:: BVB - Moderadores Online - BVB::.");
	SendClientMessage(playerid,adm, "Brutos (0)");
	foreach(Player, i)
	{ 
	if(Guardiao[i]){
	new pname[24];
	GetPlayerName(i, pname, 24);
	format(file2, sizeof(file2), PASTA_CONTAS, pname);
	if(Guardiao[i] == 1){
        format(STRX,sizeof(STRX),"%s (%d) Horas Online %s%i:%s%i:%s%i",pname ,i,(HorasOnline[i] < 10) ? ("0"):(""),HorasOnline[i],(MinutosOnline[i] < 10) ? ("0"):(""),MinutosOnline[i],(SegundosOnline[i] < 10) ? ("0"):(""),SegundosOnline[i]);
	}
	SendClientMessage(playerid, adm, STRX);
	}
	}
	return 1;
	}
Reply
#2

sem o comando serб difнcil encontrar uma alma caridosa.. posta o comando.
Reply
#3

Quote:
Originally Posted by Whoo
Посмотреть сообщение
sem o comando serб difнcil encontrar uma alma caridosa.. posta o comando.
Ta ai ja, Foi mal tinha esquecido, Se tiver como da uma ajudada agradeзo.
Reply
#4

Voltei a mexer com samp hoje man nem lembro mais das coisas mas acho que й isso:

PHP код:

if(strcmp(cmdtext"/Moderadores"true) == 0){
    
SendClientMessage(playerid,0x00FF40AA".:: BVB - Moderadores Online - BVB::.");
    
SendClientMessage(playerid,adm"Falcon (0)");
    foreach(
Playeri)
    { 
    if(
Guardiao[i]){
    new 
pname[24];
    
GetPlayerName(ipname24);
    
format(file2sizeof(file2), PASTA_CONTASpname);
    if(
Guardiao[i] == 1){
        
format(STRX,sizeof(STRX),"%s (%d) Horas Online %s%i:%s%i:%s%i",pname ,i,(HorasOnline[i] < 10) ? ("0"):(""),HorasOnline[i],(MinutosOnline[i] < 10) ? ("0"):(""),MinutosOnline[i],(SegundosOnline[i] < 10) ? ("0"):(""),SegundosOnline[i]);
    }
    
ShowPlayerDialog(playerid666DIALOG_STYLE_MSGBOX"Admins",STRX"Fechar""");
    }
    }
    return 
1;
    } 
Reply
#5

Код:
if(strcmp(cmdtext, "/Moderadores", true) == 0)
{

	new pname[24], cmdString[128], cmdString2[128];
	foreach(Player, i)
	{
		 
		if(Guardiao[i] == 1)
		{
			
			GetPlayerName(i, pname, 24);
			format(cmdString,sizeof(cmdString),"%s (%d) Horas Online %s%i:%s%i:%s%i",pname ,i,(HorasOnline[i] < 10) ? ("0"):(""),HorasOnline[i],(MinutosOnline[i] < 10) ? ("0"):(""),MinutosOnline[i],(SegundosOnline[i] < 10) ? ("0"):(""),SegundosOnline[i]);
			strcat(cmdString2, cmdString, sizeof(cmdString2));
		}
	}
	if(cmdString2[0] == EOS) return ShowPlayerDialog(playerid, 1221, DIALOG_STYLE_MSGBOX, "Moderadores online", "Nenhum Moderador Online", "Concluir", "");
	ShowPlayerDialog(playerid, 1221, DIALOG_STYLE_MSGBOX, "Moderadores online", cmdString2, "Concluir", "");
	return 1;
}
Reply
#6

Quote:
Originally Posted by Whoo
Посмотреть сообщение
Код:
if(strcmp(cmdtext, "/Moderadores", true) == 0)
{

	new pname[24], new cmdString[128], cmdString2[128];
	foreach(Player, i)
	{
		 
		if(Guardiao[i] == 1)
		{
			
			GetPlayerName(i, pname, 24);
			format(cmdString,sizeof(cmdString),"%s (%d) Horas Online %s%i:%s%i:%s%i",pname ,i,(HorasOnline[i] < 10) ? ("0"):(""),HorasOnline[i],(MinutosOnline[i] < 10) ? ("0"):(""),MinutosOnline[i],(SegundosOnline[i] < 10) ? ("0"):(""),SegundosOnline[i]);
			strcat(cmdString2, cmdString, sizeof(cmdString2));
		}
	}
	if(cmdString2[0] == EOS) return ShowPlayerDialog(playerid, 1221, DIALOG_STYLE_MSGBOX, "Moderadores online", "Nenhum Moderador Online", "Concluir", "");
	ShowPlayerDialog(playerid, 1221, DIALOG_STYLE_MSGBOX, "Moderadores online", cmdString2, "Concluir", "");
	return 1;
}
Quase foi, deu bem menos erros do que quando eu estava tentando, Apareceu esses erros
Код:
 C:\Users\Usuario\Documents\SERVER\gamemodes\Teste.pwn(18887) : error 001: expected token: "-identifier-", but found "new"
C:\Users\Usuario\Documents\SERVER\gamemodes\Teste.pwn(18895) : error 017: undefined symbol "cmdString"
C:\Users\Usuario\Documents\SERVER\gamemodes\Teste.pwn(18895) : error 017: undefined symbol "cmdString"
C:\Users\Usuario\Documents\SERVER\gamemodes\Teste.pwn(18895) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Documents\SERVER\gamemodes\Teste.pwn(18895) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#7

Quote:
Originally Posted by MorF
Посмотреть сообщение
Quase foi, deu bem menos erros do que quando eu estava tentando, Apareceu esses erros
Код:
 C:\Users\Usuario\Documents\SERVER\gamemodes\Teste.pwn(18887) : error 001: expected token: "-identifier-", but found "new"
C:\Users\Usuario\Documents\SERVER\gamemodes\Teste.pwn(18895) : error 017: undefined symbol "cmdString"
C:\Users\Usuario\Documents\SERVER\gamemodes\Teste.pwn(18895) : error 017: undefined symbol "cmdString"
C:\Users\Usuario\Documents\SERVER\gamemodes\Teste.pwn(18895) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Documents\SERVER\gamemodes\Teste.pwn(18895) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
dei edit no cуdigo a cima..
Reply
#8

Quote:
Originally Posted by Whoo
Посмотреть сообщение
dei edit no cуdigo a cima..
Agora foi certinho, Obrigado pela ajuda.
+resp pela ajuda.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)