hello,im here with a new issue,i tried to add a flag for this vip plugin (biovip) (i need a flag to use a free hour vip type plugin)
i dont really wanted to show the plugin i've worked on cause its a disaster XD
anyways,the second plugin i attached (normalvip) is the one that i tried to copy the flag part from but i just can't get it to work properly,got all kind of errors
Code:
L 12/28/2020 - 06:13:52: Start of error session.
L 12/28/2020 - 06:13:52: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20201228.log")
L 12/28/2020 - 06:13:52: Function "CmdAddVips" was not found
L 12/28/2020 - 06:13:52: [AMXX] Displaying debug trace (plugin "bioviptest.amxx")
L 12/28/2020 - 06:13:52: [AMXX] Run time error 19: function not found
L 12/28/2020 - 06:13:52: [AMXX] [0] bioviptest.sma::plugin_init2 (line 103)
L 12/28/2020 - 06:13:52: [AMXX] [1] bioviptest.sma::plugin_init (line 85)
L 12/28/2020 - 06:13:53: Invalid CVAR pointer
L 12/28/2020 - 06:13:53: [AMXX] Displaying debug trace (plugin "bioviptest.amxx")
L 12/28/2020 - 06:13:53: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 12/28/2020 - 06:13:53: [AMXX] [0] bioviptest.sma::Ham_ResetMaxSpeedPost (line 362)
L 12/28/2020 - 06:13:53: Invalid CVAR pointer
L 12/28/2020 - 06:13:53: [AMXX] Displaying debug trace (plugin "bioviptest.amxx")
L 12/28/2020 - 06:13:53: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 12/28/2020 - 06:13:53: [AMXX] [0] bioviptest.sma::MessageScoreAttrib (line 457)
L 12/28/2020 - 06:13:53: Invalid CVAR pointer
L 12/28/2020 - 06:13:53: [AMXX] Displaying debug trace (plugin "bioviptest.amxx")
L 12/28/2020 - 06:13:53: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 12/28/2020 - 06:13:53: [AMXX] [0] bioviptest.sma::client_putinserver (line 237)
L 12/28/2020 - 06:14:32: Invalid CVAR pointer
L 12/28/2020 - 06:14:32: [AMXX] Displaying debug trace (plugin "bioviptest.amxx")
L 12/28/2020 - 06:14:32: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 12/28/2020 - 06:14:32: [AMXX] [0] bioviptest.sma::event_Damage (line 292)
so to summ it up,biovip works fine,but it doesent have any flag so i can activate a free vip hour plugin
the biovip errors plugin is the one that i tried to implement free vip hour but got a lot of errors in console,as you can see above
and the question is,how can i implement this properly?