IntelliSense: expression must have integral or enum type
Posted
by
user1743737
on Stack Overflow
See other posts from Stack Overflow
or by user1743737
Published on 2012-10-15T14:26:06Z
Indexed on
2012/10/15
15:37 UTC
Read the original article
Hit count: 209
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);
}
}
}
© Stack Overflow or respective owner