|
-
Dec 30th, 2002, 01:35 PM
#1
Thread Starter
Addicted Member
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
-
Dec 30th, 2002, 04:34 PM
#2
Sleep mode
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"?
-
Dec 30th, 2002, 09:11 PM
#3
Thread Starter
Addicted Member
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
-
Dec 30th, 2002, 09:34 PM
#4
Sleep mode
If I were you , I would do the following :
VB Code:
Dim userflag As Byte
'then check this number every time you call
'any function or method .This kind of applications
'relay on IF-statements.
'e.g
If userflag = 99 then
'do the this
else
'do this
End if
'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.
-
Dec 30th, 2002, 10:19 PM
#5
Sleep mode
little alternation :
the variable that holds user level should be declared globaly like so
Public UserFlag as Byte
-
Dec 30th, 2002, 11:03 PM
#6
Thread Starter
Addicted Member
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"
-
Dec 30th, 2002, 11:55 PM
#7
Sleep mode
-
Dec 31st, 2002, 12:13 AM
#8
-
Dec 31st, 2002, 10:40 AM
#9
Thread Starter
Addicted Member
Thank you so much Pirate! that code solved a lot of my problems. and that code was just what i needed
-
Dec 31st, 2002, 10:43 AM
#10
Sleep mode
Happy to hear that
-
Dec 31st, 2002, 10:55 AM
#11
Thread Starter
Addicted Member
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)
-
Dec 31st, 2002, 11:26 AM
#12
Sleep mode
try this :
VB Code:
MsgBox("User Name: " & (UserName) & " /" & "AcessLevel :" & (UserFlag))
-
Dec 31st, 2002, 11:49 AM
#13
Thread Starter
Addicted Member
Ok thanks alot pirate it works fine thanks to you!
-
Dec 31st, 2002, 12:47 PM
#14
Sleep mode
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|