14.04.2011, 22:39
Hi there folks!
I`ve got a little problem. I`m getting some data from a MySQL table and then I want to set the gamemode, hostname and mapname using that data and this code:
I`m using this in a function in the OnGamemodeInit callback but it doesn`t do anything. Any help?
I`ve got a little problem. I`m getting some data from a MySQL table and then I want to set the gamemode, hostname and mapname using that data and this code:
Код:
new gamemodetext[sizeof(gamemode)]; format(gamemodetext, sizeof(gamemodetext), "/rcon gamemodetext %s", gamemode); new hostnametext[sizeof(hostname)]; format(hostnametext, sizeof(hostnametext), "/rcon hostname %s", hostname); new mapnametext[sizeof(mapname)]; format(mapnametext, sizeof(mapname), "/rcon mapname %s", mapname); SendRconCommand(gamemodetext); SendRconCommand(hostnametext); SendRconCommand(mapnametext);