IntelliSense: expression must have integral or enum type
- by user1743737
Guys i need someone fix this problem ? when i compile that code i have this error:
Error: IntelliSense: expression must have integral or enum type
i have problem in this part:
Console(0, V("seta sv_hostname " + servername + ";\n"));
so how i can fix that
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);
}
}
}