17.03.2018, 16:35
new cor;
if(listitem == 0) cor = 000000;
if(listitem == 1) cor = FFFFFF;
if(listitem == 2) cor = FF0000;
if(listitem == 0) cor = 000000;
if(listitem == 1) cor = FFFFFF;
if(listitem == 2) cor = FF0000;
#define Cor1 0x000000FF
#define Cor2 0xFFFFFFFF
#define Cor3 0xFF0000FF
new Color[] = {
0xFF0000FF,
0x00FF00FF,
0x0000FFFF
};
SendClientMessage(playerid, Color[2], "Olб Mundo!");
new Color[][] = {
"FF0000",
"00FF00",
"0000FF"
};
new string[15];
format(string, sizeof(string) "Olб {%s}Mundo", Color[1]);
SendClientMessage(playerid, 0xFFFFFFFF, string);
new cor[85];
if(listitem == 0) cor = "000000";
if(listitem == 1) cor = "FFFFFF";
if(listitem == 2) cor = "FF0000";);
Recomendo usar assim:
PHP код:
PHP код:
PHP код:
PHP код:
|
/* FFD700 = Dourado/Ouro */
SendClientMessage(playerid, -1, "{FFD700} Olб.");
new color[][] = { "{FFD700}", "{FF0000}", "{FFFFFF}" };
const Red = 0xFF0000;
Inserзгo de cores em hexadecimal dentro de strings, devem utilizar brackets/chaves para serem inseridas.
PHP код:
PHP код:
|