07.04.2017, 19:26
Weap is already an integer. Strval converts 'string' to integer. So that line does'nt make sense. You can delete it.
And in the other line, you used a function that gets weapon's name from a string. But you used an integer variable.
And in the other line, you used a function that gets weapon's name from a string. But you used an integer variable.