Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / registration?

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 29th Nov 2006 17:06
how do i make the player have to enter a code only once to be able to play my game??



Vampiric
17
Years of Service
User Offline
Joined: 30th Oct 2006
Location:
Posted: 29th Nov 2006 18:16
that would probably be in the installer not the game

All bow down to evil
Raasta
18
Years of Service
User Offline
Joined: 25th Apr 2006
Location:
Posted: 29th Nov 2006 20:21
By 'code' are you talking about a typed word such as a password? If so you can do something like:



Put this at the begining of the game code before anything is run.
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 30th Nov 2006 03:42
what i mean is a one time only.like once & never again.maybe i would need to write to some file?
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 30th Nov 2006 04:27
yeah I was going to say, just write a "1" or something to a file if you've entered it, and then read each time to see if the file has a 1.

Pirates of Port Royale
Live the life of a pirate.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 30th Nov 2006 05:18
If the file is in the same directory as the game itself it'll be real easy for people to copy the entire directory and copy the registration at the same time. The file needs to be in a different directory like "\Documents and Settings\All Users\Application Data\YourDirectory\" to make it harder for newbie pirates.
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 30th Nov 2006 16:24
ok,thanks!

Login to post a reply

Server time is: 2024-09-25 13:33:10
Your offset time is: 2024-09-25 13:33:10