B3none / csgo-retakes-vip-queue

A VIP queue priority plugin for Splewis' Retakes.
30 stars 6 forks source link

Exception reported: Invalid convar handle 0 (error 4) #9

Closed borzaka closed 5 years ago

borzaka commented 5 years ago

Compiled from the latest master with latest SM 1.9

L 11/05/2019 - 20:31:23: [SM] Exception reported: Invalid convar handle 0 (error 4)
L 11/05/2019 - 20:31:23: [SM] Blaming: retakes-vip-queue.smx
L 11/05/2019 - 20:31:23: [SM] Call stack trace:
L 11/05/2019 - 20:31:23: [SM]   [0] ConVar.IntValue.get
L 11/05/2019 - 20:31:23: [SM]   [1] Line 29, retakes-vip-queue.sp::Retakes_OnPreRoundEnqueue
L 11/05/2019 - 20:31:23: [SM]   [3] Call_Finish
L 11/05/2019 - 20:31:23: [SM]   [4] Line 689, ././scripting/retakes.sp::RoundEndUpdates
L 11/05/2019 - 20:31:23: [SM]   [5] Line 578, ././scripting/retakes.sp::Event_RoundPreStart

I had no problem with previous versions, so I assume this commit broke it: 03e09ec4b087a66513b8a0104d525b2285deb769

borzaka commented 5 years ago

Well, it's not throwing errors, but it's not working ether :(

I have 9 players already playing on the server, a VIP connects, but he is not putted into the game, he is just remains in the waiting queue until someone is disconnects.

sm_retakes_maxplayers is 9

This is the problematic part in somewhat:

if (retakesMaxPlayers.IntValue > GetArraySize(rankingQueue))
{
    return;
}