View Issue Details

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

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.



2012-10-18 05:22

administrator   ~~0017796

Fixed in

Test please

Issue History

Date Modified Username Field Change