Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Creating a Login function for game Possible Y/N? #69838
04/06/06 01:26
04/06/06 01:26
Joined: Nov 2005
Posts: 49
Massachusetts
T
TBone Offline OP
Newbie
TBone  Offline OP
Newbie
T

Joined: Nov 2005
Posts: 49
Massachusetts
Hi, Does anyone know if it is possible in C-Script to create a login funcion for a game?

I'm running version 6.3XX and I would like to add a login module to my game so that players can create a profile with different settings. These settings would be written out to a .txt file so nothing is lost. I did not find anything like C++'s cin or cout keyword in the 3D manual. Is there something similar?

Another option would be for me to use C++ to create the login and then call the .exe game file from the dos prompt.

Any ideas would be great, I don't have a lot of experience programming so please be gentle

thanks for your time


"Supreme executive power derives from a mandate of the masses NOT some farcicle aquatic ceromony" Constitutional peasant skit "Monty Python and the Holy Grail"
Re: Creating a Login function for game Possible Y/N? [Re: TBone] #69839
04/06/06 06:08
04/06/06 06:08
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
I think it is possible using c-script, like save and read
user name, password with file_str_write and file_str_read,
compare user name/password with str_cmp.

But don't forget to encrypt the password.txt file for security purpose.

Re: Creating a Login function for game Possible Y/N? [Re: vlau] #69840
04/06/06 13:24
04/06/06 13:24
Joined: Nov 2005
Posts: 49
Massachusetts
T
TBone Offline OP
Newbie
TBone  Offline OP
Newbie
T

Joined: Nov 2005
Posts: 49
Massachusetts
Thanks Vlau,
I'll keep that in mind.

thanks for your help

I just found the keyword inkey() I think I can use that to take characters from the keyboard as a string and then operate on them.


"Supreme executive power derives from a mandate of the masses NOT some farcicle aquatic ceromony" Constitutional peasant skit "Monty Python and the Holy Grail"

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1