30.04.2009, 20:00
On this tutorial.
After a minute the whole server crash. That's all need to say.
Hope someone can help me
After a minute the whole server crash. That's all need to say.
Hope someone can help me

Originally Posted by lavamike
Maybe post your code? The code that you added as in whatever you added to your script with that tutorial.
|
new RandomMSG[] =
{
"Random Message 1",
"Random Message 2",
"Random Message 3"
};
forward SendMSG();
public OnGameModeInit()
{
SetTimer("SendMSG", 60000, true);
// 60000ms = 60 seconds = 1 minute
}
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG)); //calculates the size of RandomMSG (which is 3)
SendClientMessageToAll(COLOR, RandomMSG[randMSG]); // Replace the "color" with your defined color.
}
SendClientMessageToAll(COLOR, RandomMSG[randMSG]); // Replace the "color" with your defined color.
Originally Posted by ferriswheel
Код:
SendClientMessageToAll(COLOR, RandomMSG[randMSG]); // Replace the "color" with your defined color. |
Originally Posted by 0rb
It need to be a two dimensional array
![]() |