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
ID:159133
![]() May 5 2009, 5:33 am
|
|
![]() May 5 2009, 5:51 am
|
|
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.
|
Right But
saying this sample ExPort() |