Gamestudio has no min and max functions in the manual, but there are minv and maxv functions, maybe you mean them?