I am using Activ to build a game into an exe and make it with HTML. I have been using activ script trying to develop a login where it opens a file takes the first line and makes sure that it matches what they enter in the box. Serveral things have arisen: 1)I know for a fact that I eneter the right pass but STREQUALS returns 0
2)I need a way to write/parse the file so that when i save thier player info in the same file i can retrieve it.
3)I need help building a Interface so players can be online.
Posted on: 3:46 am on June 19, 2003
EBookCompiler
1. I don't think there is a STREQUALS. THere is a STREQUAL
Make sure there are no extra spaces etc.
or you could try STRCMP STRCMP(sv1,s2,s3) Lexographic comparison of s2 and s3. sv1 is set to -1 if s2 is less than s3. sv1 is set to 0 if s2 and s3 are identical. sv1 is set to 1 if s2 is greater than s3.
2. For simple data, a good idea might be to save into an INI file, which is an easy to read back
3. Didn't understand this question
Posted on: 2:57 pm on June 19, 2003
Midheart
I am using inin files now and though they are nice I am not getting the results I need no matter what i do i still get a -1 for STRCMP and also get a CANNOT do something WITH NUMERCIAL EXPRESSION when i try to show the value iun a messagebox the things is this uses no numerical expression
I no longer need any help with this but would like to thank you for all you tried to do here is the working code: SET('bx','0') FSET('sp1','Username') FSET('sp2','Password') STRCAT('fnam','{sp1}','{sp2}') FILEEXIST('bx','C:\Program Files\CalakronIND\Midheart\USR{sp1}.ini') IF({bx}) INIREAD('usrnf','C:\Program Files\CalakronIND\Midheart\USR{sp1}.ini','Midheart','password') STREQUAL('bx','{usrnf}','{sp2}') IF({bx}) MESSAGEBOX('OK!') ELSE MESSAGEBOX('Invalid Password!') ENDIF ELSE MESSAGEBOX('User File Does Not Exist! Create New User!') ENDIF
With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.
Disclosure:
Our company's websites' content (including this website's content) includes advertisements for
our own company's websites, products, and services,
and for other organization's websites, products, and services.
In the case of links to other organization's websites,
our company may receive a payment, (1) if you purchase products or services,
or (2) if you sign-up for third party offers, after following links from this website.
Unless specifically otherwise stated, information about other organization's products and services,
is based on information provided by that organization,
the product/service vendor, and/or publicly available information - and should
not be taken to mean that we have used the product/service in question.
Additionally, our company's websites contain some adverts which we are paid
to display, but whose content is not selected by us, such as Google AdSense ads. For more
detailed information, please see Advertising/Endorsements Disclosures
Our sites use cookies, some of which may already be set on your computer. Use of our site
constitutes consent for this. For details, please see Privacy.
Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.