Raised This Month: $ Target: $400
 0% 

Question about player id


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
male_07
New Member
Join Date: Jul 2017
Old 07-19-2017 , 12:02   Question about player id
Reply With Quote #1

the id of the players change when another disconnect or new player joins the server? I mean:

*Player 1 joins the server*
Player 1 have id 1.

*Player 2 joins the server*
Player 2 have id 2.

*Player 3 joins the server*
Player 3 have id 3.

*Player 1 left the server and player 4 joins it*
Player 4 have id ?

In this cases, all the ids of the players change? Player 2 have now id 1, Player 3 have id 2, etc etc.

The point of this question is, im trying to save certain players i select, so i have to store somewhere the id of those players, but if these ids change every time someone joins or leave the server i have to update the id of the players, right?
male_07 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 07-19-2017 , 12:13   Re: Question about player id
Reply With Quote #2

Quote:
Originally Posted by male_07 View Post
the id of the players change when another disconnect or new player joins the server? I mean:

*Player 1 joins the server*
Player 1 have id 1.

*Player 2 joins the server*
Player 2 have id 2.

*Player 3 joins the server*
Player 3 have id 3.

*Player 1 left the server and player 4 joins it*
Player 4 have id ?

In this cases, all the ids of the players change? Player 2 have now id 1, Player 3 have id 2, etc etc.

The point of this question is, im trying to save certain players i select, so i have to store somewhere the id of those players, but if these ids change every time someone joins or leave the server i have to update the id of the players, right?
it takes the lowest available space, when joining.

at least that`s how i always thought of it
__________________
retired chump

Last edited by DjSoftero; 07-19-2017 at 12:13.
DjSoftero is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 07-19-2017 , 14:14   Re: Question about player id
Reply With Quote #3

Quote:
Originally Posted by male_07 View Post
*Player 1 joins the server*
Player 1 have id 1.

*Player 2 joins the server*
Player 2 have id 2.

*Player 3 joins the server*
Player 3 have id 3.

*Player 1 left the server and player 4 joins it*
Player 4 have id ?
In most cases should be 1.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-19-2017 , 14:25   Re: Question about player id
Reply With Quote #4

If you need to keep track of players between sessions use Steam ID.
klippy 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 23:11.


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