30.09.2018, 09:11
(
Последний раз редактировалось None1337; 30.09.2018 в 10:31.
)
So I have a string like: clanInfo[clanid][clanColor] = "FF0000"
and I want to make something like this:
But i don't know how to make the color in the variable to be something like this: 0xFF0000FF
I've tried something like this, but it doesn't work
Can someone help me?
and I want to make something like this:
PHP код:
SendClientMessage(playerid, 0xFF0000FF, "This is the clan color");
I've tried something like this, but it doesn't work
pawn Код:
stock getClanColor(clanid) {
new str[10];
format(str, sizeof str, "0x%sFF", clanInfo[clanid][clanColor]);
return str;
}
// using:
SendClientMessage(playerid, getClanColor(player_clan), "This is the clan color!");