Thread: [Solved] Get players medigun TF2
View Single Post
Cieniu97
Junior Member
Join Date: Sep 2021
Location: Poland
Old 10-01-2021 , 11:19   Re: Get players medigun TF2
Reply With Quote #7

I ended up using PC Gamer suggestion.

As for heavyisgps answer. The old syntax doesnt seem to work in spEdit compiler.

Naydef, your code looks super slick! But I dont understand why it works ;) and using that without knowledge would be risky for me. I still struggle with understanding enums.
For example in PC Gamer solution there is switch statment that takes from tf2stocks.inc.
Idk why wouldn't I be able to just get the name from that data structure. In other languages its easy. Just tf2weapons[x] would return the name. Do I have to make switch statments for each enum in tf2 hahah?

PS: How do I mark it as solved?
Cieniu97 is offline