伙计们,我需要有人解决这个问题吗?当我编译该代码时,出现此错误:
Error: IntelliSense: expression must have integral or enum type
我在这部分有问题:
Console(0, V("seta sv_hostname " + servername + ";\n"));
那我该如何解决
if (strncmp(command, V("exec config_mp"), 14) == 0)
{
if (GAME_MODE == 'D')
{
CIniReader iniReader(V(".\\teknogods.ini"));
char *servername = iniReader.ReadString(V("Settings"),V("Servername"),"");
if (strcmp(servername,"") == 0)
{
info("Server name set to defult.");
}
else
{
//Console(0, V("seta scr_teambalance 1;\n"));
Console(0, V("seta sv_hostname " + servername + ";\n"));
info("server name set to: %s.", servername);
}
}
}