General > Developers Corner

Storing data like score amounts and or money, for each player.

(1/2) > >>

LuaTenshi:
How would I store data on players such as Score amounts (I need to have them store in a database so people don't lose their score when they leave.) and stuff like that?
I was thinking of using Networked-Vars but after Megiddo said they where broken I am not so sure about using them, so any ideas?

Megiddo:
I never said they were broken, I said that they have historically been terrible. As in, slow to update, sometimes not synching properly.

LuaTenshi:

--- Quote from: Megiddo on December 25, 2012, 11:07:55 PM ---I never said they were broken, I said that they have historically been terrible. As in, slow to update, sometimes not synching properly.

--- End quote ---

For me that translates into broken. lol.

RynO-SauruS:
You could just make a hook for when they leave (I believe it's best to use "OnEntityRemoved" and check if it's a player), get their score (GetFrags()?) and save it.

LuaTenshi:

--- Quote from: RynO-SauruS on December 26, 2012, 01:18:21 AM ---You could just make a hook for when they leave (I believe it's best to use "OnEntityRemoved" and check if it's a player), get their score (GetFrags()?) and save it.

--- End quote ---

Yes but I would like to score to update live so where would I hold it then?

Navigation

[0] Message Index

[#] Next page

Go to full version