mbeytekin
Member
All I want is to check if a user who owns my game on Steam has this game every time the game is opened. Even if Steam is in offline mode. I am currently checking as follows;
I think steam needs to be online in the "if steam_is_user_logged_on ()" section. That's why it gives an error here when steam is in offline mode.
How can I solve this problem?
GML:
global.steam_api = false;
if steam_initialised()
{
global.steam_api = true;
}
global.user_id="noone"
if steam_is_user_logged_on()
{
global.user_id = steam_get_user_account_id();
}
if global.user_id="noone"
{
show_message("Steam connection error")
game_end();
}
if !global.steam_api {exit;}
How can I solve this problem?