CODED LOCK, with different personal number, each number has its code

First things first:

sterretje:
Please edit your post and add code tags.

after your code.

This is done with the symbol left of 'B' in the post editing window.

Then, investigate arrays and structures.