Gicu
Well-Known Member
- Joined
- Feb 26, 2011
- Messages
- 187
- Reaction score
- 52
In file included from /----/src/bed.h:23,
from /----t/src/actions.cpp:23:
/----/src/item.h: In member function ‘int32_t Item::getAttackSpeed() const’:
/----/src/item.h:857:30: error: ‘const class ItemType’ has no member named attackSpeed’
857 | return items[id].attackSpeed;
| ^~~~~~~~~~~
make[2]: *** [CMakeFiles/tfs.dir/build.make:94: CMakeFiles/tfs.dir/src/actions.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:125: CMakeFiles/tfs.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
TFS 1.X+ - [C++] item attack speed (attr key not recognized)
Hello, so I'm trying to have attack speed on each weapon. No errors on compiling, only this error in console: [Warning - Items::parseItemNode] Unknown key value: attackspeed It also doesn't work if it's attackSpeed. Here's what I've done: items.cpp } else if (tmpStrValue == "attack")...
otland.net
Help
Post automatically merged:
Bump
Post automatically merged:
bump
Last edited: