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

Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Muhlex
Junior Member
Join Date: Mar 2019
Old 05-12-2019 , 10:01   Re: Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]
Reply With Quote #36

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.
Muhlex 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 07:55.


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