ID:159133
 
Just as the Title says
if there is an update the Game should not run
lets say it has something to do with version var world

but with whom shall I compare
if(world.version<current.version)
//soryy
return 0
I can understand how to replace current version
Players with 3.5 cannot connect with players with 4.0 so it really doesnt matter.
Best way I can think of is to host a file somewhere with the latest version info that you'd retrieve to check against.
I can imagine it would be relatively simple to spoof though, if somewhere were to want to run the old version anyway...

@Max Omega: The question was about the game version, not Byond versions, so your answer is completely irrelevant.
You could, as said, store a text file somewhere with the version and download it (with world.Export()), or you could use the version shown on the hub entry itself (which you can freely change) by downloading it (preferably in text format: http://www.byond.com/games/Getenks/ DragonBallZUnitedHeroes?format=text This can be directly imported into savefile format[link]) and parsing for the version.
In response to Kaioken
Right But
saying this sample
ExPort()
set category="Debug"
var/http = world.Export("http://www.angelfire.com/getenks/Version.txt")
if(!http)
usr << "Failed to connect."
return
var/F = http["CONTENT"]
if(F)
usr << html_encode(file2text(F))
var/h=file2text(F)
h=text2num(F)
if(h>world.version)
src<<"Outdated"
else
src<<"Good"