夥計們我需要某人解決這個問題?當我編譯的代碼,我有這樣的錯誤:智能感知:表達式必須有整數或枚舉類型
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);
}
}
}
你會想用適當的語言來標記它。也許C++? –
是的語言是C++ – user1743737