On blast.hk wiki, sampSendDialogResponse contains parameter listitem which starts from 0, you are filling it with 12, try 11.
Just an attempt, idk if its gonna work but it should.
Looks like u are filling it with listitem 12 which isn't in the list, so it auto-picks first item.