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

Solved [ANY]How can I use userid to store and retreive a variable?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Morning
Member
Join Date: May 2021
Old 03-18-2023 , 14:51   [ANY]How can I use userid to store and retreive a variable?
Reply With Quote #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 is offline
 



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


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