You need to look at the definition of the menu_additem() function.
Why are you doing a whole bunch of multiplying? It is entirely unnecessary.
Explain EXACTLY what you are trying to do.
P.S. (12*i)+1 is ALWAYS an odd number and will therefore never be equal to 388. However, this is a moot point because you are are doing this very wrong.