View Single Post
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 12-13-2010 , 22:00   Re: [TF2Items] Give Weapon (v1.4.1.2.3, 12/11/2010)
Reply With Quote #102

Quote:
Originally Posted by thatdarnkid View Post
Indeed!

Every first number is your attribute ID, every second number is it's value.

Just checked my servers error log from yesterday, and noticed this:

Code:
L 12/12/2010 - 00:22:19: [SM] Native "LogAction" reported: Client index 6666 is invalid
L 12/12/2010 - 00:22:19: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 12/12/2010 - 00:22:19: [SM]   [0]  Line 190, C:\Users\User\Desktop\TF2 Stuff\Compiler\scripting\tf2items_giveweapon.sp::Command_WeaponEx()
L 12/12/2010 - 00:22:19: [SM] Native "LogAction" reported: Client index 6667 is invalid
L 12/12/2010 - 00:22:19: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 12/12/2010 - 00:22:19: [SM]   [0]  Line 190, C:\Users\User\Desktop\TF2 Stuff\Compiler\scripting\tf2items_giveweapon.sp::Command_WeaponEx()
L 12/12/2010 - 00:22:19: [SM] Native "LogAction" reported: Client index 6668 is invalid
L 12/12/2010 - 00:22:19: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 12/12/2010 - 00:22:19: [SM]   [0]  Line 190, C:\Users\User\Desktop\TF2 Stuff\Compiler\scripting\tf2items_giveweapon.sp::Command_WeaponEx()
Weapons 6666, 6667 and 6668 are my godly Huntsman, SMG and Bushwacka, all of which happen to be on the Custom weapons TXT.

As well, I think the whole "Command_WeaponEx()" thing might have appear because I changed the command on adminmenu_custom.txt to "sm_giveweapon_ex @me #1", #1 being "Which weapon".

I thought @me would make the command target the player, which it kind of does...but everytime I use it, or one of my VIPs uses sm_giveweapon (which I've also changed to sm_giveweapon @me #1 on adminmenu_custom.txt), the console says "Unknown Command: <sm_giveweapon/giveweapon_ex>"

I'm still using my own revised version of this plugin, by the way. Didn't update to the latest version because the notify thing, well I got rid of that myself (as I've explained above), and the new weapon? Don't need it on the server where my admins can get their grubby little paws on it. I'm content to use my version
O.O it's looking at it as if it's a client index. I think you did something wrong somewhere along the line. Client index =/= weapon index.

Good luck debugging that.

Hint: %N is not the droid you're looking for.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 12-13-2010 at 23:17.
FlaminSarge is offline