Raised This Month: $51 Target: $400
 12% 

[DEBATING LOL] userid...?


Post New Thread Reply   
 
Thread Tools Display Modes
Kushfield
Member
Join Date: Jan 2017
Location: Estonia
Old 10-17-2018 , 15:18   Re: userid...?
Reply With Quote #11

Quote:
Originally Posted by Natsheh View Post
The userid should be saved for each steamid.

Max userids = Max clients which have connected to the server.
Not true. If there was one userid for every steamid, then what would even be the point of having them at all, as you could just use the steamid instead. I think it was already explained pretty clearly here how userids work.
Kushfield is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-17-2018 , 16:08   Re: userid...?
Reply With Quote #12

Quote:
Originally Posted by Kushfield View Post
Not true. If there was one userid for every steamid, then what would even be the point of having them at all, as you could just use the steamid instead. I think it was already explained pretty clearly here how userids work.
You dont make sense.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 10-17-2018 , 17:15   Re: userid...?
Reply With Quote #13

Quote:
Originally Posted by Natsheh View Post
You dont make sense.
You don't either. Userids have nothing to do with Steam ids.
__________________
klippy is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-17-2018 , 18:14   Re: userid...?
Reply With Quote #14

Quote:
Originally Posted by KliPPy View Post
You don't either. Userids have nothing to do with Steam ids.
Thats my point if anyone can have special id in each server, mostly like shortcut instead of using steamid.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 10-17-2018 at 18:16.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-17-2018 , 21:18   Re: userid...?
Reply With Quote #15

Quote:
Originally Posted by Natsheh View Post
Thats my point if anyone can have special id in each server, mostly like shortcut instead of using steamid.
What?

Quote:
Originally Posted by JocAnis View Post
i started to think to implement somehwere that get_user_userid...but its like only made for kick xD
Explain what you are trying to do and we'll help you do that. If userid makes sense for the context, we'll be able to give you some idea of how to use it. Otherwise, we'll try to give you a better solution.
__________________
fysiks is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 10-17-2018 , 22:25   Re: userid...?
Reply With Quote #16

Quote:
Originally Posted by Natsheh View Post
Thats my point if anyone can have special id in each server, mostly like shortcut instead of using steamid.
A Steam ID does not change if the player leaves the server and comes back. A userID does. A user id indexes connections, the steam id indexes accounts. They are completely different. It's not a "shortcut."
__________________
ddhoward is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-18-2018 , 01:23   Re: [DEBATING LOL] userid...?
Reply With Quote #17

What i said that usersid should be indexed with steamid, thats mean each player will have special userid.

For example just like on the forums when you registered you increment members with +1, and you will have constant id.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 10-18-2018 at 01:24.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 10-18-2018 , 01:32   Re: [DEBATING LOL] userid...?
Reply With Quote #18

Quote:
Originally Posted by Natsheh View Post
What i said that usersid should be indexed with steamid, thats mean each player will have special userid.

For example just like on the forums when you registered you increment members with +1, and you will have constant id.
That would cause user IDs to be reused if a player joined the server, disconnected, and then rejoined. It defeats the purpose of the userID. We don't want a player's user ID to be unchanged upon reconnect.

If you want something "constant" to the account, then just use the Steam ID.
__________________

Last edited by ddhoward; 10-18-2018 at 01:33.
ddhoward is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 10-19-2018 , 07:03   Re: [DEBATING LOL] userid...?
Reply With Quote #19

@fyksen, i was trying some experiment..like if its possible to catch player leaving and entering again, with userid parameter..but after reading the thread,im not sure its possible haha
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 10-19-2018 , 07:18   Re: userid...?
Reply With Quote #20

Quote:
Originally Posted by JocAnis View Post
but what about: playing 17/32 players...one of player's userid is 9609, from another is: 9431...huge difference, how possible?
Well, you're doing something wrong, are you using %s to print an integer?
__________________
edon1337 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode