I want to send a message to user if turn off the internet connection, because the ads do not visible.
But if I run this code then show me the message when I am online and when I am offline.
How can I fix this? Thank you!
http://img5.fotos-hochladen.net/uploads ... oqmwca.jpg
so you want that the user have to be connected to play your game? First create a OFFLINE layout. Add the Browser option on your game and add a event with the browser: IF went offline Go to layout OFFLINE. It will block the player if its offline.
But if you want a really good idea: DOESNT BLOCK THE PLAYER TO PLAY THE GAME IF OFFLINE, i am saying this because if you want to make a good make, let the players play offline and online, if you block the player from playing your game, he will probably uninstall your game. i already downloaded games that block you to play offline, when i discover that, i uninstall the game. Hope that it help you <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />