Time freeze using CMDS [vehicle]
#2

What do you mean by time freeze?

As in the server freezes for some time? or do you mean you made a textdraw with server time and it stopped updating?

if its the server freezing then you are calling an update function which is hanging for 11 seconds causing any other server actions/processes to wait. Remember SA-MP is single threaded, meaning if you had:

Код:
public OnGameModeInit()
{
       FunctionOne();
       FunctionTwo();
       return 1;
}

public FunctionOne()
{
        for(;;) { print("Never Ending Loop"); }
        return 1;
}

public FunctionTwo()
{
      print("Function Two Called");
      return 1;
}
Function Two will never get called as function one will never complete its process. So you need to check your script for endless or wasted for loops.

- Think clearly about what your for loops are being used for.
- Also if you can I would suggest using something other then 'strcmp' for commands, try (ZCMD, DCMD, etc)
Reply


Messages In This Thread
Time freeze using CMDS [vehicle] - by PepsiCola23 - 19.05.2015, 15:36
Re: Time freeze using CMDS [vehicle] - by azzerking - 19.05.2015, 18:23
Re: Time freeze using CMDS [vehicle] - by PepsiCola23 - 19.05.2015, 18:35
Re: Time freeze using CMDS [vehicle] - by azzerking - 19.05.2015, 18:39
Re: Time freeze using CMDS [vehicle] - by PepsiCola23 - 19.05.2015, 19:02
Re: Time freeze using CMDS [vehicle] - by Konstantinos - 19.05.2015, 19:11
Re: Time freeze using CMDS [vehicle] - by azzerking - 19.05.2015, 19:11
Re: Time freeze using CMDS [vehicle] - by PepsiCola23 - 19.05.2015, 19:43

Forum Jump:


Users browsing this thread: 1 Guest(s)