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/0606:0804/06/0606:08
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/0613:2404/06/0613:24
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"