Quote: |
spawn.cpp
\TkBot2\spawn.cpp(57) : error C2666: 'String::operator`=='' : 3 overloads have similar conversions \datatypes.h(194): could be 'bool String::operator ==(const String &)' \datatypes.h(192): or 'bool String::operator ==(const char *)' or 'built-in C++ operator==(char *, char *)' while trying to match the argument list '(String, char [20])' note: qualification adjustment (const/volatile) may be causing the ambiguity command.cpp \TkBot2\command.cpp(493) : error C2666: 'String::operator`!='' : 3 overloads have similar conversions \datatypes.h(198): could be 'bool String::operator !=(const String &)' \datatypes.h(196): or 'bool String::operator !=(const char *)' or 'built-in C++ operator!=(char *, char *)' while trying to match the argument list '(String, char [20])' note: qualification adjustment (const/volatile) may be causing the ambiguity \TkBot2\command.cpp(493) : error C2666: 'String::operator`!='' : 3 overloads have similar conversions \datatypes.h(198): could be 'bool String::operator !=(const String &)' \datatypes.h(196): or 'bool String::operator !=(const char *)' or 'built-in C++ operator!=(char *, char *)' while trying to match the argument list '(String, char [20])' note: qualification adjustment (const/volatile) may be causing the ambiguity |
Code: Show/Hide if(!PlayerName.IsEmpty()) { if((PlayerName != p->name) && (PlayerName != me->name)) { TkStats* Tker= FindTker(PlayerName); if(Tker == NULL) |
Code: Show/Hide { _listnode <Player> *pl= playerlist->head; bool Found=false; while(pl) { if(Name == pl->item->name) { Found=true; break; } pl=pl->next; } return Found; } |
Code: Show/Hide if(!PlayerName.IsEmpty())
{ if (!CMPSTR(PlayerName, p->name) && !CMPSTR(PlayerName, me->name)) //if((PlayerName != p->name) && (PlayerName != me->name)) { |
Code: Show/Hide while(pl)
{ if (CMPSTR(Name.msg, pl->item->name)) // if(Name == pl->item->name) { |