Server crash
#3

Quote:
Originally Posted by lavamike
Maybe post your code? The code that you added as in whatever you added to your script with that tutorial.
pawn Код:
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.
}
Better? It's copy/Paste from the tutorial..
Reply


Messages In This Thread
Server crash - by Remi-X - 30.04.2009, 20:00
Re: Server crash - by lavamike - 30.04.2009, 20:13
Re: Server crash - by Remi-X - 30.04.2009, 21:36
Re: Server crash - by ferriswheel - 30.04.2009, 21:40
Re: Server crash - by Remi-X - 01.05.2009, 05:51
Re: Server crash - by yom - 01.05.2009, 06:22
Re: Server crash - by Remi-X - 01.05.2009, 06:24

Forum Jump:


Users browsing this thread: 1 Guest(s)