View Single Post
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 05-12-2019 , 18:50   Re: Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]
Reply With Quote #283

Quote:
Originally Posted by Muhlex View Post
I am currently trying to implement Dynamic into a series of plugins, simply for allowing easy access to data tied to clients for each plugin. Thus I am trying to use the static player settings object. This seems to work so far, however the data is not cleared when a client disconnects.

The wiki mentions that "Player Settings members are reset during Sourcemod's OnClientDisconnect_Post forward". Contrary to that, set values persist for the clients, even after rejoining the server.

Looking at the plugin code of dynamic.sp, this seems to be due to the OnClientDisconnect_Post forward not using public, but being declared as stock instead.

PHP Code:
stock void OnClientDisconnect_Post(int client)
{
    
_Dynamic_ResetObject(client);

I am still an amateur at Sourcepawn so I might have completely missed something obvious here.
That would be the error. Thanks for letting me know. Try making the void public and recompiling.

I need to push some updates so I will try patch it up in the next few days.
__________________
Neuro Toxin is offline