- there is no "encryption syntax" right. You have to invent your own way of encoding your message (eg replace each letter with next one in the alphabet)
- your "FOR" loops looks almost right, but the content is not. You have to "index" the content of "message" and "asciival" appropriately, like in "asciival := encrypt(message);
- "ord" returns integer, while "asciival" element are chars