Ammoprop & get_proprty_char

All other Source.Python topics and issues.
MrMalina
Member
Posts: 53
Joined: Mon Apr 08, 2013 2:40 pm
Location: Russian Federation

Ammoprop & get_proprty_char

Postby MrMalina » Tue May 10, 2016 2:08 pm

Hello, the following code results in an error:

Code: Select all

@Event("player_say")
def player_say(args):
    index = index_from_userid(args.get_int("userid"))

    player = Player(index)

    weapon = player.get_primary()
    print("weapon", weapon)

    weapon = Weapon(weapon)

    ammoprop = weapon.ammoprop


Image

CS:GO windows. SP version 327.
And player.get_property_char, player.set_property char lead to errors.
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Ammoprop & get_proprty_char

Postby Ayuto » Wed May 11, 2016 4:16 pm

I guess this was meant to be ord() and not int(). I will check that later when I get home today.
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Ammoprop & get_proprty_char

Postby Ayuto » Wed May 11, 2016 7:13 pm

The issue should be fixed with version 329! :)

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 9 guests