Raised This Month: $51 Target: $400
 12% 

Problem with map change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
victorngl
Member
Join Date: Feb 2011
Old 07-29-2015 , 13:15   Problem with map change
Reply With Quote #1

Well, i'm having a problem.
For example i have a variable = 5, when I change the map the variable is keeping the value five.
The plugin is not resetting with map change, what can i do to solve this problem ?
victorngl is offline
Send a message via MSN to victorngl Send a message via Skype™ to victorngl
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 07-29-2015 , 13:18   Re: Problem with map change
Reply With Quote #2

Plugins will only reload (and possibly "return" variables to their defaults) when the plugin has changed (e.g. when you recompile it).

If you wish us to be able to help you more beyond that, please show us your code.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-29-2015 , 13:45   Re: Problem with map change
Reply With Quote #3

Reset the value in OnMapEnd or OnMapStart.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
victorngl
Member
Join Date: Feb 2011
Old 07-30-2015 , 21:58   Re: Problem with map change
Reply With Quote #4

Thank you powerlord, it works!
victorngl is offline
Send a message via MSN to victorngl Send a message via Skype™ to victorngl
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 22:01.


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