I am trying to write my own cvar system, similar to that found in quake games.
This is my prototype...
and I get this error for it...Code:class rCVarEngine { public: void setCVar(const char *name, const char *value); void setNewCVar(const char *name, const char *value); const char returnCVar(const char *name); private: rCVar *cvarList; };
Then in this function where I return cvarList->value...rCVar.h:31: error: multiple types in one declaration
I get this error:Code:const char rCVarEngine::returnCVar(const char *name) { while(cvarList) { if(cvarList->name == name) { return cvarList->value; } else { cvarList = cvarList->next; } } }
Any help on fixing this would be great! I am using GCC v 3.4.2rCVar.h:74: error: invalud conversion from 'const char*' to 'char'



LinkBack URL
About LinkBacks



perator[](unsigned int) const'