Raised This Month: $32 Target: $400
 8% 

Solved [TF2] Native detected error 23, different error from normal ones?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 11-08-2019 , 04:33   [TF2] Native detected error 23, different error from normal ones?
Reply With Quote #1

This error doesn't seem to affect my plugin, but also doesn't provide any details regarding the sourcepawn file.
All I know from this is that apparently the Time_Limit function failed when it stopped.
PHP Code:
L 11/08/2019 17:27:59: [SMPlugin "DropDead.smx" encountered error 23Native detected error
L 11
/08/2019 17:27:59: [SMInvalid timer handle 4de016c (error 3during timer enddisplayed function is timer callbacknot the stack trace
L 11
/08/2019 17:27:59: [SMUnable to call function ".9500.Time_Limit" due to above error(s). 
This happens if you reach the time limit while playing dead, getting forced out of that state.

Here's the whole sourcepawn code:
Spoiler


As said before, it isn't really affecting anything in the game. But it's still an error, so I must be doing something wrong.
__________________
ragdoll spam, that is all

Steam profile, where I game, obviously.
Youtube channel, where I do Stick Death Maze animations and some other stuff.
no plugin requests, sorry


My Plugins:
-search list-
Modified Plugins:
1 | 2 | 3 | 4

Last edited by Shadowysn; 11-08-2019 at 07:11.
Shadowysn is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 11-08-2019 , 06:00   Re: [TF2] Native detected error 23, different error from normal ones?
Reply With Quote #2

You're deleting the timer that is invoking the callback. SM doesn't like that.

Code:
Action Time_Limit(Handle timer, client) {
    // ...

    // this calls CloseHandle(g_TimeLimit[client]), which closes the timer currently invoking this callback
    // SM expects this handle to be valid when the function is done being called so it can be freed (or kept in the case of a repeating timer)
    Drop_Dead(client);

    g_TimeLimit[client] = null;
    // ... 
}
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 11-08-2019 at 06:03.
nosoop is offline
Reply



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 01:00.


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