Raised This Month: $ Target: $400
 0% 

Plugin not working after Updating to 1.8.2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EmilsM
Junior Member
Join Date: Aug 2012
Old 08-07-2013 , 11:58   Plugin not working after Updating to 1.8.2
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (jailbreak.sma - 717 views - 33.4 KB)

Last edited by EmilsM; 08-07-2013 at 12:09.
EmilsM is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-07-2013 , 12:02   Re: Plugin not working after Updating to 1.8.2
Reply With Quote #2

Please attach the plugin instead of posting it
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
EmilsM
Junior Member
Join Date: Aug 2012
Old 08-07-2013 , 12:10   Re: Plugin not working after Updating to 1.8.2
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
Please attach the plugin instead of posting it
did, thx for the fast answer.
EmilsM is offline
Old 08-07-2013, 13:17
EmilsM
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-07-2013 , 16:24   Re: Plugin not working after Updating to 1.8.2
Reply With Quote #5

Quote:
Originally Posted by EmilsM View Post
it startet not registering my cvars in plugin_init()
Explain better.
__________________
Black Rose is offline
EmilsM
Junior Member
Join Date: Aug 2012
Old 08-07-2013 , 18:14   Re: Plugin not working after Updating to 1.8.2
Reply With Quote #6

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).
EmilsM is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-07-2013 , 18:54   Re: Plugin not working after Updating to 1.8.2
Reply With Quote #7

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
__________________

Last edited by Black Rose; 08-07-2013 at 19:00.
Black Rose is offline
EmilsM
Junior Member
Join Date: Aug 2012
Old 08-07-2013 , 19:22   Re: Plugin not working after Updating to 1.8.2
Reply With Quote #8

those variables are used around the code if i need to get a cvar number.

Last edited by EmilsM; 08-07-2013 at 19:35.
EmilsM is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-08-2013 , 00:26   Re: Plugin not working after Updating to 1.8.2
Reply With Quote #9

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.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 08-08-2013 at 00:28.
ConnorMcLeod is offline
EmilsM
Junior Member
Join Date: Aug 2012
Old 08-08-2013 , 07:58   Re: Plugin not working after Updating to 1.8.2
Reply With Quote #10

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
EmilsM is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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