[Ajuda] Repitiзхes - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Repitiзхes (
/showthread.php?tid=629031)
Repitiзхes -
ThuuGLif3 - 18.02.2017
Estou com problemas na repetiзгo. Se o jogador й um civil e tester, aparece duas mensagens, uma de tester e uma de civil.
Код:
if(Calado[playerid] == true)
{
SendClientMessage(playerid, COR_LARANJA, "Vocк estб calado e nгo pode utilizar o chat.");
return 1;
}
if(pInfo[playerid][pMaskuse] == 1 && pInfo[playerid][pAdminTrabalho] == 0)
{
format(string, sizeof(string), "(( (%d) Mascarado_#%d68: %s ))", playerid, pInfo[playerid][pMaskNumber], result);
ProxDetector(15.0, playerid, string, 0x939393AA);
}
if(pInfo[playerid][pAdminTrabalho] == 0 && pInfo[playerid][pMaskuse] == 0)
{
format(string, sizeof(string), "(( (%d) %s: %s ))", playerid, GetName(playerid, true), result);
ProxDetector(15.0, playerid, string, 0x939393AA);
}
if(pInfo[playerid][pAdminTrabalho] == 1)
{
format(string, sizeof(string), "(( (%d) {408080}%s{939393}: %s ))", playerid, GetName(playerid, true), result);
ProxDetector(15.0, playerid, string, 0x939393AA);
}
if(pInfo[playerid][pTesterTrabalho] == 1)
{
format(string, sizeof(string), "(( (%d) {A32A2A}%s{939393}: %s ))", playerid, GetName(playerid, true), result);
ProxDetector(15.0, playerid, string, 0x939393AA);
}
Re: Repitiзхes -
JeffSantos2 - 18.02.2017
Faz nesse formato.
Код:
if(Calado[playerid] == true) return SendClientMessage(playerid, COR_LARANJA, "Vocк estб calado e nгo pode utilizar o chat.");
if(pInfo[playerid][pMaskuse] == 1 && pInfo[playerid][pAdminTrabalho] == 0)
{
format(string, sizeof(string), "(( (%d) Mascarado_#%d68: %s ))", playerid, pInfo[playerid][pMaskNumber], result);
ProxDetector(15.0, playerid, string, 0x939393AA);
}
else if(pInfo[playerid][pAdminTrabalho] == 0 && pInfo[playerid][pMaskuse] == 0)
{
format(string, sizeof(string), "(( (%d) %s: %s ))", playerid, GetName(playerid, true), result);
ProxDetector(15.0, playerid, string, 0x939393AA);
}
else if(pInfo[playerid][pAdminTrabalho] == 1)
{
format(string, sizeof(string), "(( (%d) {408080}%s{939393}: %s ))", playerid, GetName(playerid, true), result);
ProxDetector(15.0, playerid, string, 0x939393AA);
}
else if(pInfo[playerid][pTesterTrabalho] == 1)
{
format(string, sizeof(string), "(( (%d) {A32A2A}%s{939393}: %s ))", playerid, GetName(playerid, true), result);
ProxDetector(15.0, playerid, string, 0x939393AA);
}
Re: Repitiзхes -
ThuuGLif3 - 19.02.2017
Sim, eu tentei fazer desta forma logo apуs e deu certo. Lembrei do else if. Reputado de qualquer forma meu querido.