Results 1 to 2 of 2

Thread: I have a little quastion :-)

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2000
    Posts
    33

    Question

    like if the player have the amout of 50 doller and he close the game
    that the 50$ gows to a incrypte text file and if i open the game again have can i set the 50$ back??
    and how can i set my screen maximizid the the property og the screen

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    I wouldn't use a txt file to store the 50$. Use a file in random access mode. That may be even enough security for you if you store more than just the dollar value.

    a possibility (not very safe, but it works) is:
    put two buttons and three textboxes on a form

    Private Sub Command1_Click()
    Text2.Text = 11111111 Xor Int(Text1.Text)
    End Sub

    Private Sub Command2_Click()
    Text3.Text = 11111111 Xor Int(Text2.Text)
    End Sub

    when you run the program you can write a number to the first textbox and encryt it with button one to textbox2 and decrypt it to txtbox3. This is not a very good method. It works only with integers and not work with high values.
    Of course you can change the 1111111 to any number consisting of "1" and "0".

    Do you want to set your form maximized?
    just put Me.WindowState = vbMaximized

    I hope I could help a little.
    Sanity is a full time job

    Puh das war harter Stoff!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width