I was writing a script to help skf manage her PvP contest, and I noticed that get_player_id() does not return the player ID for at least one player: mystik spiral.
It works as expected for every other name I run through it, including other names with spaces:
But when I use her account name I get:
Ultimately the function just returns the string of her account name. I brute forced the proper integer for my own script, but I figured it would be best practice to report the bug.
Using mafia version r16908, and I've also seen the bug on earlier releases.
It works as expected for every other name I run through it, including other names with spaces:
Code:
> ashq print(get_player_id($string[giestbar]))
118499
> ashq print(get_player_id($string[Honus Carbuncle]))
455727
But when I use her account name I get:
Code:
> ashq print(get_player_id($string[mystik spiral]))
mystik spiral (#2585449), fluffed her hair 29 times today
This player is currently online in channel newbie and listening to clan, games, pvp, talkie and trade.
mystik spiral
Ultimately the function just returns the string of her account name. I brute forced the proper integer for my own script, but I figured it would be best practice to report the bug.
Using mafia version r16908, and I've also seen the bug on earlier releases.