31.01.2012, 22:43
I once had the same problem, and I found the problem to be a piece of code which looked like this:
I then found out that in certain cases b could be 0, and you don't want to know what random(0) returns ^^
But to find this problem we added a printf("FunctionName(parameters)", ...); to every single function, so we could find out which function was executed last before the server froze. Maybe you should try the same.
pawn Code:
new a = random(b);
for(new i; i < a; i++)
But to find this problem we added a printf("FunctionName(parameters)", ...); to every single function, so we could find out which function was executed last before the server froze. Maybe you should try the same.