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

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
KatowADRE
Member
Join Date: Feb 2020
Old 03-28-2020 , 16:35   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2181

L 03/28/2020 - 19:21:09: [SM] [1] Line 141, D:\Workspace\FFA\yRanks.sp::UpdateStatus
L 03/28/2020 - 19:21:09: [SM] Exception reported: Array index out-of-bounds (index 19, limit 19)
L 03/28/2020 - 19:21:09: [SM] Blaming: yRanks.smx
L 03/28/2020 - 19:21:09: [SM] Call stack trace:
L 03/28/2020 - 19:21:09: [SM] [1] Line 141, D:\Workspace\FFA\yRanks.sp::UpdateStatus
L 03/28/2020 - 19:22:06: [SM] Exception reported: Array index out-of-bounds (index 64, limit 55)
L 03/28/2020 - 19:22:06: [SM] Blaming: weapon_restrict.smx

WTF?
KatowADRE is offline
KatowADRE
Member
Join Date: Feb 2020
Old 03-28-2020 , 16:39   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2182

L 03/28/2020 - 19:58:16: [SM] Exception reported: Array index out-of-bounds (index 63, limit 55)
L 03/28/2020 - 19:58:16: [SM] Blaming: weapon_restrict.smx
L 03/28/2020 - 19:58:16: [SM] Call stack trace:
L 03/28/2020 - 19:58:16: [SM] [1] Line 202, restrictinc/events.sp::CS_OnBuyCommand
L 03/28/2020 - 19:58:16: [SM] Exception reported: Array index out-of-bounds (index 64, limit 55)
L 03/28/2020 - 19:58:16: [SM] Blaming: weapon_restrict.smx
L 03/28/2020 - 19:58:16: [SM] Call stack trace:
KatowADRE is offline
eliteroyal
AlliedModders Donor
Join Date: Dec 2016
Location: Moldova
Old 03-30-2020 , 06:38   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2183

Quote:
Originally Posted by Dr!fter View Post
Last time I will point this out.

Anyone using SM 1.9 or newer must use the above one. Next, whenever new weapons are added the plugin must be recompiled with the latest includes (which add the new weapons).

I have now updated the one in the repo and "fixed" the error by ignoring any index that doesnt exist.
it compiles with errors in sm 1.10
__________________
PEACE FROM MOLDOVA
eliteroyal is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-30-2020 , 12:51   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2184

Quote:
Originally Posted by eliteroyal View Post
it compiles with errors in sm 1.10
No errors, warnings.
compile log

1.10 Compiler is warning that in newer 1.11 compiler would not compile. I assume.
__________________
Do not Private Message @me
Bacardi is offline
rafau94
New Member
Join Date: Feb 2017
Old 04-18-2020 , 08:12   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2185

Plugin is keep printing errors / warnings in logs:
Code:
L 04/18/2020 - 13:54:01: [SM] Exception reported: Array index out-of-bounds (index 64, limit 55)
L 04/18/2020 - 13:54:01: [SM] Blaming: weapon_restrict.smx
L 04/18/2020 - 13:54:01: [SM] Call stack trace:
L 04/18/2020 - 13:54:01: [SM]   [1] Line 202, restrictinc/events.sp::CS_OnBuyCommand
rafau94 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-18-2020 , 11:31   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2186

@rafau94
#2178
__________________
Do not Private Message @me
Bacardi is offline
KobyDerBeste
BANNED
Join Date: Apr 2020
Location: https://t.me/pump_upp
Old 04-18-2020 , 16:55   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2187

Got the following problem when entering the Admin Menu

L 04/18/2020 - 20:54:15: [SM] Exception reported: Language phrase "assaultsuit" not found (arg 6)
L 04/18/2020 - 20:54:15: [SM] Blaming: weapon_restrict.smx
L 04/18/2020 - 20:54:15: [SM] Call stack trace:
L 04/18/2020 - 20:54:15: [SM] [0] Format
L 04/18/2020 - 20:54:15: [SM] [1] Line 455, restrictinc/adminmenu.sp::AddWeaponsToMenu
L 04/18/2020 - 20:54:15: [SM] [2] Line 169, restrictinc/adminmenu.sp:isplayRestrictMenu
L 04/18/2020 - 20:54:15: [SM] [3] Line 147, restrictinc/adminmenu.sp::Handle_TypeMenu
KobyDerBeste is offline
Send a message via ICQ to KobyDerBeste Send a message via AIM to KobyDerBeste Send a message via Yahoo to KobyDerBeste
Dragonidas
AlliedModders Donor
Join Date: Jun 2014
Old 04-24-2020 , 06:59   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2188

when i give shield to player plugin have problem :

Client Fistach has been given weapon_shield by Dragonidas<281><>
L 04/24/2020 - 12:56:54: [SM] Exception reported: Weapon slot index -1 is invalid.
L 04/24/2020 - 12:56:54: [SM] Blaming: weapon_restrict.smx
L 04/24/2020 - 12:56:54: [SM] Call stack trace:
L 04/24/2020 - 12:56:54: [SM] [0] ThrowNativeError
L 04/24/2020 - 12:56:54: [SM] [1] Line 454, restrictinc/natives.sp::Native_GetWeaponIDFromSlot
L 04/24/2020 - 12:56:54: [SM] [3] Restrict_GetWeaponIDFromSlot
L 04/24/2020 - 12:56:54: [SM] [4] Line 329, restrictinc/natives.sp::Native_GetTeamWeaponCount
L 04/24/2020 - 12:56:54: [SM] [6] Restrict_GetTeamWeaponCount
L 04/24/2020 - 12:56:54: [SM] [7] Line 597, restrictinc/natives.sp::Native_CanPickupWeapon
L 04/24/2020 - 12:56:54: [SM] [9] Restrict_CanPickupWeapon
L 04/24/2020 - 12:56:54: [SM] [10] Line 74, restrictinc/events.sp::OnWeaponCanUse
L 04/24/2020 - 12:56:54: [SM] [12] GivePlayerItem
L 04/24/2020 - 12:56:54: [SM] [13] Line 1140, sm_super_cmds.sp::Command_Weapon
__________________

Last edited by Dragonidas; 04-24-2020 at 06:59.
Dragonidas is offline
Excillex
New Member
Join Date: Apr 2020
Old 04-24-2020 , 12:35   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2189

Hey Dr!fter, is there anyway to just allow awp for admins, vips, etc?
i cannot figure out how the "sm_weapon_restrict_immunity "0"" works
Excillex is offline
SPRINGx
New Member
Join Date: Mar 2020
Old 04-27-2020 , 03:26   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2190

Hello,

Any help with removing messages? ( SM Spamming )
SPRINGx 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 08:09.


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