View Issue Details

IDProjectCategoryView StatusLast Update
0001937Multi Theft Auto : San AndreasScriptingpublic2007-04-08 12:53
ReporterjbetaAssigned ToJax 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformAMD Athlon(tm) 64 X2 ~2.2GHzOSWindows XP Professional x64 SP1OS Version5.2, Build 3790
Product Versionblue_sa.r2.a12 
Target VersionFixed in Versionmtasadm_v1.0-dp1 
Summary0001937: getVehicleFromID issues for nonexistant indexes
Description

First off, the function should probably be called getVehicleFromIndex, as it returns a vehicle based in its index, not the vehicleID.

These issues only occur when no car with the given index exists.

Serverside, it returns an invalid element.
Running tostring on it gives "userdata: 00000000", using getElementType crashes the server.

Clientside, it returns the passed index.

TagsNo tags attached.

Activities

Jax

2007-04-08 12:53

administrator   ~~0004332

It stays as getVehicleFromID though

Issue History

Date Modified Username Field Change