View Issue Details

IDProjectCategoryView StatusLast Update
0001647Multi Theft Auto : San AndreasScriptingpublic2006-11-03 03:23
Reportererorr404Assigned ToJax 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Versionblue_sa.r2.a12 
Target VersionFixed in Versionmtasadm_v1.0-dp1 
Summary0001647: Server crash from getWeaponIDFromName
Description

I gave an improper weapon name for the id part of the command, and the server crashed.

Additional Information

addCommandHandler ( "give", "consoleGive" )
function consoleGive ( player, commandName, ammo, id )
if ( player ) then
if ( not giveWeapon ( player, id, ammo ) ) then
if ( not giveWeapon ( player, getWeaponIDFromName ( tonumber ( id ) ), ammo ) ) then
outputConsole ( "Failed to give weapon.", player )
end
end
end
end

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change