powerlord / sourcemod-nativevotes Goto Github PK
View Code? Open in Web Editor NEWNativeVotes SourceMod plugin
License: Other
NativeVotes SourceMod plugin
License: Other
By using your base plugin as example i did the following plugin(code below) and vote doesn't start.
`RegAdminCmd("DebugVote", GS, ADMFLAG_ROOT);
public Action GS(client,args)
{
new Handle:vote = NativeVotes_Create(YesNoHandler, NativeVotesType_Kick);
NativeVotes_SetInitiator(vote, client);
NativeVotes_SetDetails(vote, "Test Yes/No Vote");
NativeVotes_DisplayToAll(vote, 30);
}
`
Server crashes on tf2 MetaMod:Source v1.11.0-dev+1131V, SourceMod v1.11.0.6583
I am getting a memory leak.
L 08/09/2019 - 16:45:46: [SM] MEMORY LEAK DETECTED IN PLUGIN (file "nativevotes.smx")
L 08/09/2019 - 16:45:46: [SM] Unloading plugin to free 9280 handles.
L 08/09/2019 - 16:45:46: [SM] Contact the author(s) of this plugin to correct this error.
L 08/09/2019 - 16:45:46: --------------------------------------------------------------------------
L 08/09/2019 - 16:45:46: Type GameEvent | Count 9258
L 08/09/2019 - 16:45:46: Type GlobalFwd | Count 1
L 08/09/2019 - 16:45:46: Type PrivateFwd | Count 20
L 08/09/2019 - 16:45:46: Type CellArray | Count 1
L 08/09/2019 - 16:45:46: -- Approximately 136 bytes of memory are in use by (9280) Handles.
I think maybe it is because this event isn't being closed. I am not sure.
https://sm.alliedmods.net/new-api/events/Event/FireToClient
Unlike Fire, this function DOES NOT close the event Handle.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.