07.01.2010, 19:35
Hey. I'm using this modified code to query some SA-MP servers.
http://pastebin.com/m7a25e190
It works fine and dandy if the server is online, but if the server is offline, the script won't work. It'll hang for minutes and then you'll go to a blank page (because the server is offline I guess it's trying to send the packets but not getting a response).
So, how do I stop the script after some time and set the result to offline if the server is offline.
http://pastebin.com/m7a25e190
It works fine and dandy if the server is online, but if the server is offline, the script won't work. It'll hang for minutes and then you'll go to a blank page (because the server is offline I guess it's trying to send the packets but not getting a response).
So, how do I stop the script after some time and set the result to offline if the server is offline.