Register Code

Blitz3D Forums/Blitz3D Programming/Register Code

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Shareware games by their very nature are just one level versions of the full game that can be run as many times as you want on as many computers are you want. I think you must be thinking of something similar...

If you really wanted to do what you said you could just randomly generate a number and save it to a file.
; running the game
if filesize("number.key")=0
   ; this is the first time the game has been run
   f=writefile("number.key")
   writeint f,rand(9999999999)
   closefile f
else
   ; this is the second time the game has been run
endif