• FA 2.0 darkrp ammo error
    3 replies, posted
Hi, I just recently started a darkrp server and I am trying to create a universal ammo using just one of the ammo types from the FA weapons pack. For example using .45 ACP for all pistols I am using to make the custom ammo code shorter.... DarkRP.createAmmoType(".45 ACP", { name = "Pistol Rounds", model = "models/Items/357ammo.mdl", price = 1234, amountGiven = 120, customCheck = function(ply) return ply:IsAdmin() end}) The only issue is the error I get after I simply edit the SWEP.primary.ammo on the p226 to ".45 ACP" I get this... [FA:S 2.0 Alpha SWEPS - Pistols] lua/weapons/fas2_p226/shared.lua:143: unfinished string near '<eof>' 1. unknown - lua/weapons/fas2_p226/shared.lua:0 Even though I edit nothing else but the ammo, does the code possible run too deep into the addon for me to edit? This is all I edit... -- Primary Fire Attributes -- SWEP.Primary.ClipSize = 13 SWEP.Primary.DefaultClip = 26 SWEP.Primary.Automatic = false [B]SWEP.Primary.Ammo = ".45 ACP" ---- From, SWEP.Primary.Ammo = ".357 stig(I think thats the default type)"[/B] [B][/B] Alot of times people in the server have to ask if rifle ammo goes into an ak, and with FA ammo types this would only get worst. For example, no one would know which gun .45 ACP rounds go into. I am just trying to save everyone headaches. Thank you for your time.
Thats an autorefresh error. You should be preocupied for it. Its just a bug
[QUOTE=geferon;49220949]Thats an autorefresh error. You should be preocupied for it. Its just a bug[/QUOTE] The thing is, once I get into the server the weapons I modified don't show up and the server says trying to create unknown entity like, "unknown entity fas_glock20" or something
Thank you for your help, I went ahead and extracted the .gma files again and it worked this time for some unknown reason.
Sorry, you need to Log In to post a reply to this thread.