Results 1 to 14 of 14

Thread: storing, getting data

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216

    storing, getting data

    i searched the forums but none of the questions where asked (that i could find) that answered my problem.

    I was wonder how i could make a logon that would get information from somewhere and search that usernames stats (level, etc.) but i dont now how to store data in the first place.


    Also what is the Winsock of vb.net standard? (server) and what do i need?

    Thanks

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: storing, getting data

    Originally posted by james14
    i searched the forums but none of the questions where asked (that i could find) that answered my problem.

    I was wonder how i could make a logon that would get information from somewhere and search that usernames stats (level, etc.) but i dont now how to store data in the first place.


    Also what is the Winsock of vb.net standard? (server) and what do i need?

    Thanks
    What do you mean by "get information from somewhere"?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216
    Like.... say when i log on as James , i am level 99, how can i make it so that the program get information and learns that i am level 99 and i can do the things that level 99's can do. If i was someone else that was level 20, i want it to show that he is level 20 and can only do the commands that they can do not 99's i just want to get information from somewhere that can tell me this

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    If I were you , I would do the following :

    VB Code:
    1. Dim userflag As Byte
    2.  
    3.     'then check this number every time you call
    4.     'any function or method .This kind of applications
    5.     'relay on IF-statements.
    6.     'e.g
    7.     If userflag = 99 then
    8.     'do the this
    9.     else
    10.     'do this
    11.     End if
    12.  
    13. 'Note: whenever any user is logged this variable must be set othwise else statement will be excuted all the time.
    Last edited by Pirate; Dec 30th, 2002 at 10:12 PM.

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    little alternation :
    the variable that holds user level should be declared globaly like so
    Public UserFlag as Byte

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216
    So how can the program tell if the userflag is level 99? where do i store that? What is a userflag any way? I just want it to go like "Ok, his username is James lets see what level he is, 99, ok well enable level up command ... etc"

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    wait a sec ..

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I know how bad teacher I'm .but ....
    this should get you started.
    Attached Files Attached Files

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216
    Thank you so much Pirate! that code solved a lot of my problems. and that code was just what i needed

  10. #10
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Happy to hear that

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216
    pirate just one more small question, im trying to make a whos online list but it would come out like this: James99 how can i space that out a little bit? ill look in my book though i think it mentioned something about that.
    the code would be:

    whos.text = (username) & (userflag)

  12. #12
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    try this :
    VB Code:
    1. MsgBox("User Name: " & (UserName) & " /" & "AcessLevel :" & (UserFlag))

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216
    Ok thanks alot pirate it works fine thanks to you!

  14. #14
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

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