I found the problem with Amenine's script is that he removed half of the script.
elseif (!stat* iswm $2) || (!pmstat* iswm $2) {
var %ratio = $round($calc($vcmp.kills(%a) / $vcmp.deaths(%a)),2)
if ($vcmp.cmdcheck(!stats,%id) == fail) !halt
elseif (%a == -1) vcmp.msg %id Error - Absent ID/Name
else vcmp.say $vcmp.name(%a) $+ 's Stats - Joins: $vcmp.joins(%a) $+ , Kills: $vcmp.kills(%a) $+ , Deaths: $vcmp.deaths(%a) $+ , Ratio: %ratio ,
}