Forum C# Need help with creating the chat!

Need help with creating the chat!

Postby sk165 » February 24th, 2017, 4:30 pm

I'm trying to create a chat bot with a built-in quiz, but the error occurred - I need to do messaging, for example, every 10 seconds to all players, but cannot run timer in background thread on the server, because the threads are not supported, I can not understand where you could use the timer in another case??? :oops: :cry:
sk165
 
Posts: 1
Joined: February 21st, 2017, 3:47 pm

Re: Need help with creating the chat!

Postby Henrik » February 24th, 2017, 10:56 pm

You can use AddTimer or ScheduleCallback in your serverside code to get a piece of code to run every X seconds, or once after Y seconds.

https://playerio.com/documentation/refe ... e#AddTimer
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to C#



cron