1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

An annoying Error

Discussion in 'Discussion' started by Bescharlie, Jul 31, 2013.

  1. Bescharlie

    Bescharlie Im on the right, sucha pretty little boy ;')

    Code:
    ERROR] gamemodes/cwphasefour/schema/items/sh_custom_clothes.lua:35: attempt to perform arithmetic on local 'armorScale' (a nil value)
    1. GetClientSideInfo - gamemodes/cwphasefour/schema/items/sh_custom_clothes.lua:35
    2. GetMarkupToolTip - gamemodes/clockwork/framework/libraries/sh_item.lua:687
    3. unknown - gamemodes/clockwork/framework/derma/cl_business.lua:222
    
    What does this mean in my console? and its causing me to leave teh game :(
     
  2. sants1

    sants1 I'm an asshole. That's all.

    You must of added a clothing item wrongly.
     
  3. Have you made any changes lately?
     
  4. Bescharlie

    Bescharlie Im on the right, sucha pretty little boy ;')

    I was trying to add armor, following these instructions.

    Too add armour:

    Code: [Select]
    local ITEM = Clockwork.item:New("custom_clothes");
    ITEM.cost = 250;
    ITEM.name = "Example";
    ITEM.weight = 1;
    ITEM.business = true;
    ITEM.replacement = "models/example.mdl";
    ITEM.description = "An item of clothing used as an example.";
    ITEM:Register();

    The spawn icon is generated by Clockwork automatically.
     
  5. "The spawn icon is generated by Clockwork automatically." Is that in the code? If so, it shouldn't be.
     
  6. Use
    Code:
    ITEM.protection = 0.1;
    Where 1.0 = 100% and 0.1 = 10%
     
  7. Bescharlie

    Bescharlie Im on the right, sucha pretty little boy ;')

    I tried doing this and still getting the same error :/
     
  8. Show me how you did it, cause I copied that straight from the resistance uniform.
     
  9. Bescharlie

    Bescharlie Im on the right, sucha pretty little boy ;')

Previous Readers (Total: 0)