[QUOTE=ddhoward;2603711]
Quote:
Originally Posted by Facksy
Code:
md 5 seconds ago to execute "sm_slap @all" (Handle: 72417886)
[DelayCmd] Running "sm_slap @all", queued 5 seconds ago.
L 07/14/2018 - 11:17:28: [SM] Exception reported: Client index 0 is invalid
L 07/14/2018 - 11:17:28: [SM] Blaming: delaycmd.smx
L 07/14/2018 - 11:17:28: [SM] Call stack trace:
L 07/14/2018 - 11:17:28: [SM] [0] FakeClientCommandEx
L 07/14/2018 - 11:17:28: [SM] [1] Line 104, E:\Steam\sourcemod\delayCmd.sp::Ti
mer_DelayCmd
I'm honestly at a loss as to how this could happen. In any case, I've put in a little check to prevent this, but it shouldn't be happening at all.
|
Same reason we say to either send client serial or userId when passing to a timer, because a client can disconnect.
GetClientOfUserId returns 0 it there is no client under that userid. (
https://sm.alliedmods.net/new-api/cl...ClientOfUserId )
So if the delay is long enough a player could do the command as they are disconnecting.