27.03.2012, 17:11
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.
|
Code:
SendClientMessageToAll(COLOR_GREEN, RandomMessages[random(sizeof(RandomMessages))]; SendClientMessageToAll <- Function COLOR_GREEN <- Color RandomMessages[random(sizeof(RandomMessages)) <- Random
Choosing a random NUMBER from randommessages, because he putted sizeof, so it will get a number.
So say it was 4, its exactly the same as doing:
RandomMessages[4]