[Ajuda] Utilizar cores HTML - 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] Utilizar cores HTML (
/showthread.php?tid=664532)
Utilizar cores HTML -
GuiLopez - 03.03.2019
Boa noite pessoal... Queria saber como faзo pra utilizar apenas os cуdigos HTML sem adicionar os 0xAA (Tentei de todas as formas, e utilizei o search tambйm)
Meu comando atualmente estб assim:
Код:
CMD:cornick(playerid, params[]) {
static hex;
if(PlayerVIP[playerid] == 0)return SendClientMessage(playerid,Vermelho,"Apenas VIPS podem alterar a cor do nick");
if(sscanf(params, "x", hex))return SendClientMessage(playerid,Vermelho,"* Utilize /cornick ''0x[COR]AA''");
SetPlayerColor(playerid,hex);
return 1;
}
Queria que o player utilizasse apenas /cornick FF0000... helppp
Re: Utilizar cores HTML -
Felipealves - 03.03.2019
PHP код:
CMD:cornick(playerid, params[]) {
new cor[13];
if(PlayerVIP[playerid] == 0)return SendClientMessage(playerid,Vermelho,"Apenas VIPS podem alterar a cor do nick");
if(sscanf(params, "s[6]", cor))return SendClientMessage(playerid,Vermelho,"* Utilize /cornick '[Cor]' ex: FF0000");
format(cor, sizeof(cor), "0x%sFF", cor);
SetPlayerColor(playerid, cor);
return 1;
}
Re: Utilizar cores HTML -
GuiLopez - 03.03.2019
Quote:
Originally Posted by Felipealves
PHP код:
CMD:cornick(playerid, params[]) {
new cor[13];
if(PlayerVIP[playerid] == 0)return SendClientMessage(playerid,Vermelho,"Apenas VIPS podem alterar a cor do nick");
if(sscanf(params, "s[6]", cor))return SendClientMessage(playerid,Vermelho,"* Utilize /cornick '[Cor]' ex: FF0000");
format(cor, sizeof(cor), "0x%sFF", cor);
SetPlayerColor(playerid, cor);
return 1;
}
|
Код:
error 035: argument type mismatch (argument 2)
Linha:
Код:
SetPlayerColor(playerid, cor);
Re: Utilizar cores HTML -
GuiLopez - 03.03.2019
Jб resolvi
Obrigado.