Versuch's mal, indem du ( Player.GetItemCount XXWaffe ) durch ( Player.GetItemCount XXWaffe > 0 ) austauschst. Evt. liegt's daran.



Oder setzt mal das XXWaffe in "" (also anstelle von z.B. 18Waffe schreibst du immer "18Waffe"). Das CS hat manchmal Probleme mit Ziffern am Anfang einer ID.