Raised This Month: $ Target: $400
 0% 

Invalid CVAR pointer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 01-25-2009 , 15:00   Re: Invalid CVAR pointer
Reply With Quote #1

I had a user with this issue recently.


All I did to fix it was to change:
Code:
	if (get_playersnum(1) <= g_maxplayers - get_pcvar_num(amx_reservation) || get_pcvar_num(afkcheck_allow) || (!(is_user_bot(id))))
	return PLUGIN_CONTINUE
to:
Code:
	if (get_pcvar_num(afkcheck_allow) || !amx_reservation)
		return PLUGIN_CONTINUE

	if (get_playersnum(1) <= g_maxplayers - get_pcvar_num(amx_reservation) || !is_user_bot(id))
		return PLUGIN_CONTINUE
At least this way you guys wont be bothered with an error message if someone isn't running the adminslots plugin.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
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 19:05.


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