View Issue Details

IDProjectCategoryView StatusLast Update
0007968Multi Theft Auto : San AndreasGeneralpublic2018-09-20 17:25
Reporter^Rapper^ Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionsuspended 
OSWindows 
Summary0007968: getWeaponNameFromID() returns duplicate ID's for 10/11 and 12/13
Description

When i use getWeaponNameFromID(10) or getWeaponNameFromID(11) these always return "Dildo".

getWeaponNameFromID(10) It's the short dildo.

getWeaponNameFromID(11) It's the long dildo.

If i use this function getWeaponIDFromName(getWeaponNameFromID(11)) this will return 10.

Steps To Reproduce
  • Put getWeaponIDFromName(getWeaponNameFromID(11))in runcode.
TagsNo tags attached.

Activities

arranTuna

2015-07-02 23:03

manager   ~~0023527

Executing client-side command: getWeaponNameFromID(10)
Command results: Dildo [string]
Executing client-side command: getWeaponNameFromID(11)
Command results: Dildo [string]
Executing client-side command: getWeaponNameFromID(12)
Command results: Vibrator [string]
Executing client-side command: getWeaponNameFromID(13)
Command results: Vibrator [string]

Weapons having duplicate names is not good.

alberto2345

2015-12-13 00:31

viewer   ~~0024228

This function also returns names for IDs that don't exist.

ID 40 = Bomb
ID 21 = Freefall Bomb
ID 20 = Rocket
ID 19 = Rocket

Yet these IDs arent weapons and return errors when trying to use them with giveWeapon. (found this issue with the admin panel made by lil_toady)

qaisjp

2015-12-13 01:33

administrator   ~~0024230

They are valid projectiles, however
https://wiki.multitheftauto.com/wiki/CreateProjectile

Issue History

Date Modified Username Field Change