Cosmotonio
New Member
- Joined
- Nov 26, 2007
- Messages
- 142
- Reaction score
- 0
how i can change the talk actions to non-sensitive-case?
Then stop thinking and just find out...i think that isn't easy to make.
<talkaction words="!uptime" script="uptime.lua"/>
<talkaction words="!up time" script="uptime.lua"/>
<talkaction words="!Up Time" script="uptime.lua"/>
<talkaction words="!Uptime" script="uptime.lua"/>
<talkaction words="!upTime" script="uptime.lua"/>
<talkaction words="!up Time" script="uptime.lua"/>
<talkaction words="!Up time" script="uptime.lua"/>
<talkaction words="!UPTIME" script="uptime.lua"/>
<talkaction words="!UP TIME" script="uptime.lua"/>
if(commandTags[i] == text.substr(0,1))
{
if(commands.exeCommand(player, text))
return true;
}
text = toLowerCaseString(text);
../game.cpp: In member function `bool Game::playerSayCommand(Player*, SpeakClasses, const std::string&)':
../game.cpp:3058: error: invalid initialization of reference of type 'std::string&' from expression of type 'const std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
../tools.h:52: error: in passing argument 1 of `void toLowerCaseString(std::string&)'