27.03.2012, 16:56
Quote:
Hiddos, tell me how the hell the concept would work? They should become "RANDOM messages", what he does is just sending them to all! He has to get out the info outta the arrray and define them randomly with the function.
|
SendClientMessageToAll(COLOR_GREEN, RandomMessages[random(sizeof(RandomMessages))];
instead of
new randomMsg = random(sizeof(randomMessages));
SendClientMessageToAll(COLOR_ORANGERED, randomMessages[randomMsg]);
so you can see, that randomMsg is equal to random(sizeof(randomMessages)) so
randomMessages[randomMsg] = RandomMessages[random(sizeof(RandomMessages))
which is basically the same