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

Restrict Item


Post New Thread Reply   
 
Thread Tools Display Modes
^BuGs^
Senior Member
Join Date: May 2007
Old 10-28-2007 , 12:53   Re: Restrict Item
Reply With Quote #151

MAX_ITEMS are the items in the game, not the player count, which is [MAXPLAYERS + 1] because client's start at 1, not 0. But the only reason I can deduce that something is not working right, is that an item alias is wrong and that's why It can't find it.
__________________
Sourcemod Plugin Author and Plugin Approver
"The correct way is MAXPLAYERS + 1"
I will not take bugs/new idea reports over the forums. Please use the issue list.
^BuGs^ is offline
^BuGs^
Senior Member
Join Date: May 2007
Old 10-28-2007 , 13:03   Re: Restrict Item
Reply With Quote #152

Quote:
Originally Posted by Frenzzy View Post
Please, add other languages support.
Oh. That will be as soon as I nail this one down.
__________________
Sourcemod Plugin Author and Plugin Approver
"The correct way is MAXPLAYERS + 1"
I will not take bugs/new idea reports over the forums. Please use the issue list.
^BuGs^ is offline
^BuGs^
Senior Member
Join Date: May 2007
Old 10-28-2007 , 13:30   Re: Restrict Item
Reply With Quote #153

The SMX is posted on the bug report, please use it and report any feedback or errors to that post.
__________________
Sourcemod Plugin Author and Plugin Approver
"The correct way is MAXPLAYERS + 1"
I will not take bugs/new idea reports over the forums. Please use the issue list.
^BuGs^ is offline
^BuGs^
Senior Member
Join Date: May 2007
Old 10-28-2007 , 14:34   Re: Restrict Item
Reply With Quote #154

Well... after doing some testing, I found 2 erros. When I was checking the item count, it was checking the spectators. I now have this part "skiped" if they are not on a team. Simple. The other one "on loading" was some other plugins that use the SMC phraser were doubling up on the same foward I had for restrict. I now made my forwards unique, and will be doing the same to other plugins I code. This fixed two errors. Now I check "adding restrict command" line to the CFG file, and I had no problem so far, but I will check it out more in depth.
__________________
Sourcemod Plugin Author and Plugin Approver
"The correct way is MAXPLAYERS + 1"
I will not take bugs/new idea reports over the forums. Please use the issue list.
^BuGs^ is offline
Kramerika
Senior Member
Join Date: Dec 2004
Location: PA, US of A
Old 10-29-2007 , 09:13   Re: Restrict Item
Reply With Quote #155

Is this one of the errors fixed? This is one I am getting with the latest version.

Code:
L 10/29/2007 - 04:28:53: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/29/2007 - 04:28:53: [SM] Displaying call stack trace for plugin "restrict.smx":
L 10/29/2007 - 04:28:53: [SM]   [0]  Line 620, restrict/restrict.privatefunctions.sp::AddLimitCount()
L 10/29/2007 - 04:28:53: [SM]   [1]  Line 260, restrict/restrict.publicfunctions.sp::Restrict_Weapon_Limit_Count()
L 10/29/2007 - 04:28:53: [SM]   [2]  Line 55, restrict/restrict.hooks.sp::Event_RoundEnd()
Kramerika is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 10-29-2007 , 10:25   Re: Restrict Item
Reply With Quote #156

Yup, it is indeedy.

Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
red!
Senior Member
Join Date: Sep 2007
Location: Germany
Old 10-30-2007 , 19:07   Re: Restrict Item
Reply With Quote #157

is it fixed in the archive posted on the entry page? if so, bugs seems to have missed to increment the release version...
red! is offline
^BuGs^
Senior Member
Join Date: May 2007
Old 10-31-2007 , 00:39   Re: Restrict Item
Reply With Quote #158

I have 1.2.0.0 in the bug report version that we are testing.
__________________
Sourcemod Plugin Author and Plugin Approver
"The correct way is MAXPLAYERS + 1"
I will not take bugs/new idea reports over the forums. Please use the issue list.
^BuGs^ is offline
symphyle
Member
Join Date: Aug 2006
Old 11-04-2007 , 21:02   Re: Restrict Item
Reply With Quote #159

Hi !

I have a bug ...
I have a SourceTV enable on my server. And I have "sm_restrict limit team 0 awp g3sg1 sg550" in my server.cfg.

Restrictions has been desable for CT team.

When I desable SourceTV, restrictions are actives ...

Bug ?
symphyle is offline
^BuGs^
Senior Member
Join Date: May 2007
Old 11-04-2007 , 23:59   Re: Restrict Item
Reply With Quote #160

Without having ct or t after team, it will do it for both teams. (btw, this is just a global restrictions, so why not "sm_restrict item global awp g3s1 sg550" ? Same thing if it limited to 0.)

However, I have never encountered that bug if it is a bug, before. You will have to post your sm_restrict list output, at the various stages.
__________________
Sourcemod Plugin Author and Plugin Approver
"The correct way is MAXPLAYERS + 1"
I will not take bugs/new idea reports over the forums. Please use the issue list.
^BuGs^ 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 12:23.


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