Closed yarik2720 closed 6 years ago
with type list it is not working at all:
L 09/01/2018 - 00:07:26: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 09/01/2018 - 00:07:26: [SM] Blaming: customvotes.smx
L 09/01/2018 - 00:07:26: [SM] Call stack trace:
L 09/01/2018 - 00:07:26: [SM] [0] GetArraySize
L 09/01/2018 - 00:07:26: [SM] [1] Line 1245, C:\Users\gusta\Documents\public_plugins\compiler\customvotes.sp::Menu_ListVote
L 09/01/2018 - 00:07:26: [SM] [2] Line 445, C:\Users\gusta\Documents\public_plugins\compiler\customvotes.sp::MenuHandler_Vote
I've updated the plugin, it worked fine on my local test server, please confirm if the fix is working. Edit: use simple in vote type.
Vote config used for testing: (tested in TF2)
"Toggle Friendly Fire"
{
"type" "simple"
"vote" "1"
"minimum" "1"
"command" "sm_voteff"
"start_notify" "[SM] {VOTER_NAME} ({VOTER_STEAMID}) started a vote to toggle friendly fire."
"call_notify" "[SM] {VOTER_NAME} voted for {yes|no}."
"pass_notify" "[SM] Vote passed."
"fail_notify" "[SM] Vote failed. Received: {VOTE_AMOUNT} Required: {VOTE_REQUIRED}"
"chattrigger" "votemaptime"
}
Fix works, thanks!
I have simple vote in customevotes.cfg:
It works, votes passes well, but when players make vote it doesn't result in chat. In error log I see this: