微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

编译时出错:“找不到标识符”代码 C3861

如何解决编译时出错:“找不到标识符”代码 C3861

我的 acore_characters 表中有一个名为 'rank' 的字段,其 tinyint 的范围是 0 到 3(包括 0 到 3),具体取决于玩家的进度。我需要在登录和某些特定情况下读取该值。 我写了以下 PreparedStatement: "SELECT rank FROM acore_characters WHERE guid = ?" 然后是应该读取该值的代码

uint16 GetCharactersRank(uint64 guid) {

PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(mystatement);
stmt->setUInt32(0,GetGUID());
PreparedQueryResult result = CharacterDatabase.Query(stmt);
if (result) {
    [...truncated]

然后获取结果等等,但是编译时我得到一个代码C8361,因为Player.cpp文件中的'GetGUID':identifier not found...出了什么问题?整个文件中的其他 GetGUID 调用没有给出这个结果。我不是很喜欢 C++,非常感谢任何帮助。

解决方法

不建议直接修补内核以向其添加自定义。而是使用模块

可以在此处找到示例:Is it possible to turn a core patch into a module for AzerothCore?

您可以查看并复制 skeleton-module 并开始修改它以创建您自己的。

就您而言,您可能想使用 > npm run development > @ development D:\laravel\public > mix × Mix Compiled with some errors in 6.30s ERROR in ./resources/js/components/ExampleComponent.vue 1:0 Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type,currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders > <template> | <div> | <h3>Hey</h3> webpack compiled with 1 error npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ development: `mix` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\****\AppData\Roaming\npm-cache\_logs\2021-02-26T09_06_38_033Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ dev: `npm run development` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\***\AppData\Roaming\npm-cache\_logs\2021-02-26T09_06_38_066Z-debug.log 播放器挂钩。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。