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

SetEntProp is crashing my server on occasion


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
switz213
Junior Member
Join Date: Jun 2015
Old 03-24-2017 , 00:32   SetEntProp is crashing my server on occasion
Reply With Quote #1

Code:
public Action Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast) {
    if (g_GameState == GameState_WarmupWaitingForPlayers) {
        int client = GetClientOfUserId(event.GetInt("userid"));
        if (IsValidClient(client) && !IsFakeClient(client)) {
            LogDebug("Try setting client %L to $16000", client);
            SetEntProp(client, Prop_Send, "m_iAccount", 16000);
            LogDebug("Set client %L to $16000", client);
        }
    }
}
For some reason, this SetEntProp call has been crashing my server on occasion for the past few weeks.

Has anyone seen this happen? It only seems to occur a few times out of hundreds of connections.

Edit: I had tried upgrading to the latest debug sourcemod and it's still happening on occasion.

Last edited by switz213; 03-24-2017 at 00:56.
switz213 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 15:32.


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