22.04.2017, 08:31
This function is not the exact cause. There are two more entries above it. Keep in mind that a stack-trace is in reverse order: the first thing that is listed is the last thing that happened. Entry #1 is a function that accepts one parameter which is likely the playerid. So that points to the function StopRobbery(). And in that function in turn there is a function that accepts one parameter and to which you passed "500". It is that last function that is the culprit.

