AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Plugin not working after Updating to 1.8.2 (https://forums.alliedmods.net/showthread.php?t=222865)

EmilsM 08-07-2013 11:58

Plugin not working after Updating to 1.8.2
 
1 Attachment(s)
So, after updating to 1.8.2 my server plugins stopped working, as i checked and tried to compile the plugin, it startet not registering my cvars in plugin_init()

this is my code and i cant compile it anymore
Spoiler

YamiKaitou 08-07-2013 12:02

Re: Plugin not working after Updating to 1.8.2
 
Please attach the plugin instead of posting it

EmilsM 08-07-2013 12:10

Re: Plugin not working after Updating to 1.8.2
 
Quote:

Originally Posted by YamiKaitou (Post 2007731)
Please attach the plugin instead of posting it

did, thx for the fast answer.

Black Rose 08-07-2013 16:24

Re: Plugin not working after Updating to 1.8.2
 
Quote:

Originally Posted by EmilsM (Post 2007726)
it startet not registering my cvars in plugin_init()

Explain better.

EmilsM 08-07-2013 18:14

Re: Plugin not working after Updating to 1.8.2
 
well I started looking for bugs, when the previous version witch was compiled in 1.8.1 was not working, i tried to compile it in amxmodx compiler and it tossed out errors that all the g_ variables are empty (witch are cvars).

Black Rose 08-07-2013 18:54

Re: Plugin not working after Updating to 1.8.2
 
No. The g_* variables are globals, the gp_* variables are global cvars pointers
Most of the cvar pointers are registred as cvars but never retrieved. Some g_variables have the same problem What's the use for them?

Spoiler

EmilsM 08-07-2013 19:22

Re: Plugin not working after Updating to 1.8.2
 
those variables are used around the code if i need to get a cvar number.

ConnorMcLeod 08-08-2013 00:26

Re: Plugin not working after Updating to 1.8.2
 
There is no warning in the original one, and nobody has reported it as not working : http://forums.alliedmods.net/showthread.php?p=1113644

You obviously broke something in plugin and it doesn't seem to have anything related to amxx version.
And no, when compiler says you don't use variables, you don't use them.

Example :

all occurences of gp_AutoOpen variable:
Code:

        Line 64: new gp_AutoOpen
        Line 234:        gp_AutoOpen = register_cvar("jbe_autoopen", "1")

So you never use it, you could completely remove those 2 lines it wouldn't change anything to the plugin.

EmilsM 08-08-2013 07:58

Re: Plugin not working after Updating to 1.8.2
 
Your right, my mistake, but there is a different issue now, my teamselect doesnt work. When the plugin loads you can select teams, witch is not working...
Its throwing these errors in AMXX logs
Spoiler


All times are GMT -4. The time now is 15:45.

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