The reason you can't learn programming is because you start with the wrong books.
You don't need a book "how to programm in 3D" or "how to programm games" - those books are for those who are already programmers.
You need "Very Basic Programming for Non-Programmers" - the book that will teach you the very basic concepts of programming, common to all languages. I assure you, there are such books translated into Norwegian, you just look for them in the wrong place.
LUA, in my opinion, is the easiest language of them all. I've started learning LUA today and I can programm in it already - but it's because I'm an experienced programmer (in other languages), there is really not much I need to learn at all. For you, you need to learn the very basics. Once you've learned programming as a skill, you'll discover that learning different languages of programming is really trivial and easy.
I advice you to start with this tutorial: from very-very start of it. http://lua.gts-stolberg.de/en/index.php
It explains what is "local" - it is, by the way, a declaration of the scope of the variable. But what is a scope? You don't know it; it's a programming concept. This tutorial explains it.
It's also explains what is "function" - this word is a mark, a sign, a declaration that the block of code between "function" and "end" is a separate block, it has a name, and can be used in other places through using that name. This is also explained in the tutorial.
Both "local" and "function" exist in ALL programming languages, so they aren't explained specifically. That's why you need some book "very basics of programming for very beginners - non-programmers", not any of more specific books.
Good luck; you have to learn to find proper books first, before programming; I assure you, there are such Norwegian books.
Thank you im still really early to actully learn about coding. i need to finish this school which i have 3 years left. after im done at that school i need to move to Oslo and go Game programming for 3 years there. but i'm going to learn the most of it before i actully start on the school
This is what i will learn at that school: