View Issue Details

IDProjectCategoryView StatusLast Update
0007397Multi Theft Auto : San AndreasServerpublic2012-10-22 10:09
ReporterRemi-XAssigned Toccw 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target Version1.3.2Fixed in Version1.3.2 
Summary0007397: MTA's weapon function usage differs lately
Description

Kinda annoying if you ask me.
For example, the older weapon functions only accept weapon ID's.
Newer ones, such as custom weapons and weapondata accept both ID's and names.
And last, setJetpackWeaponEnabled only accepts names - names that differ from these which are returned by getWeaponNameFromID.

Really, this is annoying and requires wrappers everywhere to make function usage more general. If you ask me, only ID's as argument are needed as people can do getWeaponIDFromName if they want to use names so much. It would also follow the general function scheme like that, as barely any function requires names over ID's.

Additional Information

Also youre wasting 0.0000001 nanosecond of performance to lookup the ID or name! /me hides

TagsNo tags attached.

Activities

ccw

2012-10-18 05:22

administrator   ~~0017796

Fixed in http://code.google.com/p/mtasa-blue/source/detail?r=4768

Test please

Issue History

Date Modified Username Field Change