Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21441

Save State Editor Game (Checkbox)?

$
0
0
I like make save stat editor game but I have smell problem and I hope someone help me for that is problem.:cry:

Code:

Public Sub SaveState(pFile As String)
    If pFile = "" Then Exit Sub
    Dim FF As Long
    FF = FreeFile()
    Open pFile For Binary As FF
        ' Save the Lives
        If chkLive.value = 1 Then Put #FF, 117290 + 1, 1
    Close #FF
End Sub

When I click in checkbox then save as, It is change TwoByte not Curval ?

Example: in the save file game is live 02 but when I saved then I check in file I see like this:0200, I wonder what is wrong I do?

Thank you advance

Viewing all articles
Browse latest Browse all 21441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>