Thread
: [Solved]
[ANY]How can I use userid to store and retreive a variable?
View Single Post
Author
Message
Morning
Member
Join Date: May 2021
03-18-2023 , 14:51 [ANY]How can I use userid to store and retreive a variable?
#
1
I want to store a variable for a player, but I want to access it across map changes. At the moment I am using client as an array index, but it can change.
From my understanding, a player userid will be unique for the lifetime of the game server, so it seems like I need to somehow use that. Would this involve storing userid first in an array, and then using that to get a new client number after a map change? Does anyone have any working code of this so I can see how it's done?
Last edited by Morning; 03-21-2023 at
05:43
.
Morning
View Public Profile
Send a private message to Morning
Find More Posts by Morning