Problem with RCON commands.
#1

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:

Код:
	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);
I`m using this in a function in the OnGamemodeInit callback but it doesn`t do anything. Any help?
Reply


Messages In This Thread
Problem with RCON commands. - by sobolanux - 14.04.2011, 22:39
Re: Problem with RCON commands. - by SchurmanCQC - 14.04.2011, 22:44
Re: Problem with RCON commands. - by Vince - 14.04.2011, 23:08
Re: Problem with RCON commands. - by sobolanux - 15.04.2011, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)