Thank you.
I want to make when a player connects to the server he has no class and then through a menu he choses his class. It means that I need to have
enum Class something like a default value.
Will this do the trick ?
PHP Code:
enum Class
{
None = 0, //No class
Dog,
Bear,
Cat
}
And how can I set player exp and level value to his current class in Death event (when he is the killer - read_data(1)) ? :/ How can I get his class from enum ?
If I do
pInfo[id][Exp] += 10 will it add 10 to the class that is already defined in
pInfo[id][Classes] = Class: xx (if yes, that it would be ok, as adding any exp or level in death event will happen only if any class, other than None, is set) ?