Re: [TF2Items] Item Designer - Advanced Give Item
I'm afraid that conflicts with the code itself. The best solution is to memorize a completely useless attribute to apply. Like 15;0 which disables random crits.
|
Re: [TF2Items] Item Designer - Advanced Give Item
L 10/17/2021 - 15:34:01: [SM] Exception reported: Cowardly refusing to add invalid attribute index "0" to an item.
L 10/17/2021 - 15:34:01: [SM] Blaming: GiveItem.smx L 10/17/2021 - 15:34:01: [SM] Call stack trace: L 10/17/2021 - 15:34:01: [SM] [0] TF2Items_SetAttribute L 10/17/2021 - 15:34:01: [SM] [1] Line 136, C:\sourcemod compile 1.3.5 hg3053\scripting\GiveItem.sp::GiveItem anyidea ? Linux sourcemod build: 6516 metamod build: 1145 attribute tried to use 57 (health regen) 107 (move speed bonus) |
Re: [TF2Items] Item Designer - Advanced Give Item
Quote:
now most attributes give the same error |
Re: [TF2Items] Item Designer - Advanced Give Item
Mr.Booza090, You didn't show us the command you used. However, the error is telling you that can't use attribute index of '0'. In other words, your command line is probably formatted incorrectly.
A correctly formatted command should look like the example provided to you in the first post. Like this: sm_gi <client> <item index> <slot> <level> <quality> <preserve attribs 1/0> <hat 1/0> <tf_weapon_classname> <"attributes"> Example: sm_gi @me 298 1 100 -1 0 0 tf_weapon_minigun "129 ; 5" Would give you a level 100 Iron Curtain that heals you 5 hp a second Notice the attribute section is in quotes, with 129 being the attribute number and 5 being the value. |
Re: [TF2Items] Item Designer - Advanced Give Item
Is there any way to equip weapons like the Ali Baba's Wee Booties and the Darwin's Danger Shield without crashing?
|
Re: [TF2Items] Item Designer - Advanced Give Item
Quote:
|
Re: [TF2Items] Item Designer - Advanced Give Item
Does anyone know how to use it if I use it with ServerCommand for one of the Bosses.
I wrote this ServerCommand("sm_gi @me 159 2 100 5 0 0 tf_weapon_lunchbox "128 ; 1"); But this error is written by plugin.sp(280): error 001: expected token: ",", but found "-integer value-" plugin.sp(280) : warning 215: expression has no effect plugin.sp(280) : error 037: invalid string (possibly non-terminated string) |
| All times are GMT -4. The time now is 21:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.