Save using steamid
Is there anyway to save into a nVault using steamid, or do you have to use ip ?
|
Re: Save using steamid
Quote:
then call nvault_set or nvault_pset with the value you want to inscribe... I don't know if I understand your question so my apologies if not. Slmclarengt |
Re: Save using steamid
Well, i guess, I have this function when someone comes into server.
Code:
Code:
then on disconnect... Code:
here is the save points function Code:
SO...how would i change this to save using authid ? |
Re: Save using steamid
or is there a better way to save, instead of using nVault ? Is SQL better ?
|
Re: Save using steamid
Quote:
Slmclarengt |
Re: Save using steamid
ok...i will stick with nVault then, its not a lot of data just numbers for people...back to the whole saving with steam ID then...can i do that in nVault and how do I modify the code above to save in nVault with Steam ID ?
|
Re: Save using steamid
Quote:
Code:
Code:
then on disconnect... Code:
here is the save points function Code:
There you are - I commented out the old code exactly as it was and added in the authid/steamid code to replace it to save by authid/steamid rather than IP address. Slmclarengt |
Re: Save using steamid
Ok, I thought i tried this before...but there is one thing that confuses me, should i put load_points(id) in client_putinserver() or in client_authorized() because when the client is put in server, are they already authorized, or is there a chance of their authid being STEAM_ID_PENDING ?
|
Re: Save using steamid
client_authorized is called once the client has been authorized with Steam. This is typically right after connect, but it is able to happen at anytime. Clients can be placed into the server without being authorized.
|
Re: Save using steamid
ok, thanks, it worked for me, i moved the load_points(id) to client_authorized, and it works great !
|
| All times are GMT -4. The time now is 10:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.