编译器给我一个错误,我无法追查

时间:2017-08-27 18:35:17

标签: function

错误是:功能和定义不同

int GetItemBaseMaterialType(string sItem)//uses resrefs
{
string sMaterial = GetSubString(sItem, 9,3);
if(sMaterial == "ada") return 1;
if(sMaterial == "drk") return 3;
if(sMaterial == "mth" || sItem == "nx1_breastplate01" | "nw_maarcl037" | "nx1_chainmail01") return 5;
if(sMaterial == "rdh") return 9;
if(sMaterial == "slh") return 10
if(sMaterial == "uhh") return 11;
if(sMaterial == "wyh") return 12;

}

函数的作用是根据传递给函数的字符串返回一个int;添加更多字符串,以免匆忙解决此问题

提前致谢

0 个答案:

没有答案