Message repeted every 5 seconds
#6

It is shown every 5 seconds because the timer calling that callback is on a 5000 ms (5 second) interval, and there's a message, which is sent to all players.

You do not need to use that format, you're also sending it to all players and not just the player that is getting the stats saved, simply use this, using SendClientMessageToAll, thinking that all that code, for all them players will be called all at once every 5 seconds will work, but won't if the timer is delayed (for example, by a big loop) or the player lags. Use this:

pawn Код:
SendClientMessage(playerid, THE_COLOR_YOU_WANT_TO_USE, "THE_MESSAGE_YOU_WANT_TO_SEND");
Reply


Messages In This Thread
Message repeted every 5 seconds - by Face9000 - 06.12.2010, 13:18
Re: Message repeted every 5 seconds - by kLx - 06.12.2010, 13:19
Re: Message repeted every 5 seconds - by Face9000 - 06.12.2010, 13:23
Re: Message repeted every 5 seconds - by tony_fitto - 06.12.2010, 13:25
Re: Message repeted every 5 seconds - by Face9000 - 06.12.2010, 13:26
Re: Message repeted every 5 seconds - by Joe_ - 06.12.2010, 13:27
Re: Message repeted every 5 seconds - by PlayLSX - 06.12.2010, 13:28
Re: Message repeted every 5 seconds - by tony_fitto - 06.12.2010, 13:29
Re: Message repeted every 5 seconds - by tony_fitto - 06.12.2010, 13:31
Re: Message repeted every 5 seconds - by Scenario - 06.12.2010, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)