Guten Tag,
ich schreib grade ein Server Config system über MYSQL aber es wird nicht geladen
hier der code:
stock LoadServerInfo() {
new npc[128];
format(ServerInfo[GameModeText],sizeof ServerInfo[GameModeText],"gamemodetext %s",mysql_GetStringServerInfo("ServerInfo","GameModeText","ID"));
ServerInfo[WhiteListOn] = mysql_GetIntServerInfo("ServerInfo","WhiteList","ID");
ServerInfo[MaxNPC] = mysql_GetIntServerInfo("ServerInfo","MaxNPC","ID");
ServerInfo[BlackList] = mysql_GetIntServerInfo("ServerInfo","BlackList","ID");
new npc[128];
format(ServerInfo[GameModeText],sizeof ServerInfo[GameModeText],"gamemodetext %s",mysql_GetStringServerInfo("ServerInfo","GameModeText","ID"));
ServerInfo[WhiteListOn] = mysql_GetIntServerInfo("ServerInfo","WhiteList","ID");
ServerInfo[MaxNPC] = mysql_GetIntServerInfo("ServerInfo","MaxNPC","ID");
ServerInfo[BlackList] = mysql_GetIntServerInfo("ServerInfo","BlackList","ID");
format(npc,sizeof npc,"maxnpc %d",ServerInfo[MaxNPC]);
printf(" ");printf("");
printf("Whitlist: %d",ServerInfo[WhiteListOn]);
printf("Blacklist: %d",ServerInfo[BlackList]);
printf(" ");
printf(" ");printf("");
printf("Whitlist: %d",ServerInfo[WhiteListOn]);
printf("Blacklist: %d",ServerInfo[BlackList]);
printf(" ");
SendRconCommand(ServerInfo[GameModeText]);
SendRconCommand(npc);
return true;
}
SendRconCommand(npc);
return true;
}
Hier der Screen vom Server und Tabelle: