[help] random colors
#1

new ServerColors[10] = {
0x6495EDAA, 0x4EEE94AA, 0xC0FF3EAA, 0xFFFF00AA, 0xFFB90FAA,
0x7171C6AA, 0x9B30FFAA, 0xA2B5CDAA, 0xC0FF3EAA, 0xFFD700AA
};


public OnPlayerConnect(playerid)
{
new string[256], name[MAX_PLAYER_NAME];
new randcolor = random(sizeof(ServerColors));
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(string, 256, ".התחבר/ה לשרת %s", name);
SendClientMessageToAll(randcolor, string);


return 1;
}

why it's giving me black all the time?
Reply


Messages In This Thread
[help] random colors - by borisblat - 04.06.2009, 17:15
Re: [help] random colors - by Jefff - 04.06.2009, 17:22
Re: [help] random colors - by Weirdosport - 04.06.2009, 17:29

Forum Jump:


Users browsing this thread: 2 Guest(s)