One username One ID, very interesting..!!

Post here your suggestions for new possible features in SmartFoxServer.

Moderators: Lapo, Bax

User avatar
JarochoCity
Posts: 180
Joined: 01 Dec 2005, 01:22
Location: Mexico
Contact:

One username One ID, very interesting..!!

Postby JarochoCity » 23 Mar 2006, 02:23

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: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 23 Mar 2006, 06:32

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
User avatar
JarochoCity
Posts: 180
Joined: 01 Dec 2005, 01:22
Location: Mexico
Contact:

yeah, but thats in the 1.4. or?

Postby JarochoCity » 23 Mar 2006, 19:10

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???
User avatar
Virusescu
Posts: 260
Joined: 07 Sep 2005, 09:36
Location: [RO]Bucharest
Contact:

Postby Virusescu » 23 Mar 2006, 19:39

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");}
User avatar
goodguy20k
Posts: 71
Joined: 10 Jan 2006, 23:58
Location: Texas, USA
Contact:

Postby goodguy20k » 23 Mar 2006, 22:19

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.
User avatar
JarochoCity
Posts: 180
Joined: 01 Dec 2005, 01:22
Location: Mexico
Contact:

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

Postby JarochoCity » 24 Mar 2006, 01:03

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: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 24 Mar 2006, 06:36

- 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
User avatar
JarochoCity
Posts: 180
Joined: 01 Dec 2005, 01:22
Location: Mexico
Contact:

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

Postby JarochoCity » 24 Mar 2006, 22:46

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..

Return to “Features Wish List”

Who is online

Users browsing this forum: No registered users and 10 guests