Posts: 988
Threads: 9
Joined: Jul 2006
Reputation:
0
You never tell the script to stop sending the message, so it's sent everytime this function is called by the timer.
Posts: 988
Threads: 9
Joined: Jul 2006
Reputation:
0
You have to kill the timer when the player disconnect, because everytime a player connect it will start a timer for his id so if a player disconnect and another player connect right after, he got the same id as the previous player and it will set another timer for the same player id (so the timer will be called 2 times in this case, for the same id, so this playerid will receive 2 messages).
Or better solution, start a timer in init() and use a loop for all players inside the timer.
I don't know if it's your problem, but it's a problem anyway.
Posts: 515
Threads: 76
Joined: May 2008
Reputation:
0
I found problem... fixed...