One username One ID, very interesting..!!

Post here your suggestions for new possible features in SmartFoxServer.

Moderators: Lapo, Bax

Post Reply
JarochoCity
Posts: 180
Joined: 01 Dec 2005, 01:22
Location: Mexico
Contact:

One username One ID, very interesting..!!

Post by JarochoCity »

i hope you can do this because this is very usefull.....

that each name has different ID, for example:

John - Id = 143
Tom - Id = 435
Jessica - Id = 245

etc...

so you can send Messages to the exactly user, like a MovilPhone sending messages...that's a cool idea.. hope you like it, good luck, and the other idea i gave in the other POST it's also very good hope you like them :D
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

i hope you can do this because this is very usefull.....

that each name has different ID, for example:

John - Id = 143
Tom - Id = 435
Jessica - Id = 245
Each user logged in the server already has its own unique ID

:)
Lapo
--
gotoAndPlay()
...addicted to flash games
JarochoCity
Posts: 180
Joined: 01 Dec 2005, 01:22
Location: Mexico
Contact:

yeah, but thats in the 1.4. or?

Post by JarochoCity »

for example:

For Charles the id is 345 and when he logs out and he log in again he will still have the same Id = 345???
Virusescu
Posts: 260
Joined: 07 Sep 2005, 09:36
Location: [RO]Bucharest
Contact:

Post by Virusescu »

no, he won't have the same id each time he logs in :shock:
They only have unique ids. That's a different thing.

You can still make your own user management system and use a database for unique identification of each user ;).
function onJoin(usr) {if (usr.getName() == "Lapo") trace ("All Hail Lapo");}
goodguy20k
Posts: 71
Joined: 10 Jan 2006, 23:58
Location: Texas, USA
Contact:

Post by goodguy20k »

I think he's saying it would be nice if the COULD keep their ID. Yes, you're right Virus, it's unique on every log in, but he wants it to keep this across logins.

Now, I can see a way to do this with user variables, so it doesn't make a lot of sense to me.
JarochoCity
Posts: 180
Joined: 01 Dec 2005, 01:22
Location: Mexico
Contact:

yeah i mean that an user will always have the same Id

Post by JarochoCity »

yeah i mean that an user will always have the same Id and different to the other ones.. hope you can do it..
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

- User IDs are assigned each time a user logs in the server.
- The ID is unique in the sense that no other user can have the same ID at the same time
- The next time you will login a new ID will be assigned.

If you need an ID that stays the same for each user across sessions, just use the nickname :D (in conjunction with a password)

Obviously you will need a database where to store those names and passwords, and use it to check the user credentials.
Lapo
--
gotoAndPlay()
...addicted to flash games
JarochoCity
Posts: 180
Joined: 01 Dec 2005, 01:22
Location: Mexico
Contact:

yeah but how i can sendObject to an user if......

Post by JarochoCity »

yeah but how i can sendObject to an user if i don't even know the ID because it's always changing, is better if an ID stays for ever with an user i don't know if u like the ID but is interesting..
Post Reply