21.04.2011, 23:07
I did a debug on the database queries, so i could see what was happening. The loop stopped just after the last vehicle. if there's 566 vehicles, vTotal would equal 566. Sometimes it works in under 1 second, which then causes the server to crash a few seconds later.