View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 12-10-2010 , 22:23   Re: Steam Group Admins
Reply With Quote #18

Quote:
Originally Posted by Mister_Magotchi View Post
I don't want to be a pest about your great plugin, but I made something I think is a minor improvement to it:

In the OnPluginStart function, I added this at the end:
Code:
	if (Steam_IsConnected()) {
		g_bSteamReady = true;
	}
Normally if the plugin is reloaded while the server is running, it has to wait for the Steam_SteamServersConnected callback function to get called before it sets the g_bSteamReady variable as true, which means that the plugin won't do anything until that happens. I was having to restart my server to get the plugin working again each time I uploaded a newly compiled version (for debugging problems I was having on my end), but this fixed that.

Thanks again for a nice plugin.
Indeed. I already asked asherkin to have it automatically call the Steam_SteamServersConnect forward upon plugin load if steam is already connected at the time which should also have the same effect.
psychonic is offline