Homeworld Effects Manual: inc()

int inc(int var)

Increments its argument.

This is not a unary operator like ++ from C. It returns var + 1 and you need to assign that value to a variable. You cannot use inc() as a parameter to a function.