Chessnut / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.rocks
MIT License
94 stars 77 forks source link

DefMoney value problems - Only applied to new chars upon server restart #552

Closed myrrdin closed 9 years ago

myrrdin commented 9 years ago

What happens is that when a character is created, his default money-value is 0. If you try reloading the character, nothing changes.

However, if the server is restarted; he gets the value that he was supposed to be given. The character cannot buy anything at all up until that point because he has no funds for it as he starts with 0.

I tried creating a new character when I had already created others and restarted, and it ended up with them having money and the new char missing money. They could buy stuff, but the new character could not.

It seems to be the same for Hl2RP and ModernRP.

Leaving the server does not help. The server has to be restarted.

I have tried redoing it all. Adding the Nutscript gamemode and the Modernrp or HL2RP schema/gamemode and deleting the sv.db file; removing all the configs; but to no avail.

Any ideas?

No errormessages appear.

Chessnut commented 9 years ago

I don't understand what you're saying. The default money is used during the character creation query so of course it only applies to new characters.

Also the server doesn't need to be restarted. The default money only affects new characters after the config has been set.

myrrdin commented 9 years ago

Sorry, i'll clarify. I have the value set to 400 via the F1 menu (and it said that my character changed the value). If I create a new character after that, it says that the character has 0 dollars. But if I restart the server, he has 400; the value I set that he should have. Until the server restart, he cannot use that money.

myrrdin commented 9 years ago

Here are some screenshots

After setting a value valuechanged

After creating the new char newchar

After restart restart