Sleep function on source makes GameServer crash.

Results 1 to 3 of 3
  1. #1
    Proficient Member AmitNet is offline
    MemberRank
    Oct 2012 Join Date
    ILLocation
    156Posts

    Sleep function on source makes GameServer crash.

    Hello RageZone.
    I'm trying to add "News system" to my server,
    by coding it I have to use "Sleep" function to hold the movement of the news messages.
    While using it gameserver just crashes and hold.
    How can I seperate the function "News" from the whole GS?
    Edit: also on actions as "while (true) ..." there is a problem because the GameServer crash.
    I need the News function to work as a seperate function.
    Last edited by AmitNet; 01-01-17 at 06:44 PM.


  2. #2
    Valued Member Erickson Camejo is offline
    MemberRank
    Mar 2013 Join Date
    115Posts

    Re: Sleep function on source makes GameServer crash.

    Quote Originally Posted by AmitNet View Post
    Hello RageZone.
    I'm trying to add "News system" to my server,
    by coding it I have to use "Sleep" function to hold the movement of the news messages.
    While using it gameserver just crashes and hold.
    How can I seperate the function "News" from the whole GS?
    Edit: also on actions as "while (true) ..." there is a problem because the GameServer crash.
    I need the News function to work as a seperate function.

    why dont use new system from another sources?

  3. #3
    Proficient Member AmitNet is offline
    MemberRank
    Oct 2012 Join Date
    ILLocation
    156Posts

    Re: Sleep function on source makes GameServer crash.

    Quote Originally Posted by Erickson Camejo View Post
    why dont use new system from another sources?
    trying to configure it to my source but on another sources (as i try) they are using "Sleep(time)" function which crashes my server.
    Edit: fixed, thread can be closed.
    Last edited by AmitNet; 03-01-17 at 04:39 PM.



Advertisement