It's because you are calling a function of a class directly. You first need to declare an instance of the class and work with that.
Code: Select all
RPG_calls MyClass;
MyClass.RPG_go("Test");
And by the way, what are you trying to do here ?
I strongly suggest you read some books about programation because this is really the basics of programing.
And, honnestly, if I were you, I would first start with simple programs ! Like a pong or a tetris (and you will already see that it is REALLY extremly difficult for a beginner). A MMORPG is something that takes several years for a team of professionals to develop. So, you, as a beginner and amateur, don't even imagine the time it will take. Do you have enough time ? One or two centuries ? Hope that medicine will do some progress soon
I don't want to be mean or to destroy your hope, but MMORPG are for now the more complex games to develop. And, if you even don't know how to use a class, that's completely absurd. Programming is also something that takes time (it's like learning music or sport), it is difficult and long.
This is just an advice, don't take it wrong.