k im using this fragment script for one of the scripts that allows me to buy and decorate a house
game.getplayer().removeitem(gold, HDSolitudeBasemant.value as int)
decoratemarker.enable()
the problem is i keep getting this error
Starting 1 compile threads for 1 files...
Compiling "TIF__0100530D"...
F:\Steam\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0100530D.psc(9,28): variable gold is undefined
F:\Steam\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0100530D.psc(9,34): variable HDSolitudeBasemant is undefined
F:\Steam\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0100530D.psc(9,53): none is not a known user-defined type
F:\Steam\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0100530D.psc(9,59): cannot cast a none to a int, types are incompatible
F:\Steam\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0100530D.psc(10,0): variable decoratemarker is undefined
F:\Steam\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0100530D.psc(10,15): none is not a known user-defined type
No output generated for TIF__0100530D, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__0100530D
what did i do wrong