• Garry's Mod DarkRP Money printers not working! i get errors in console
    3 replies, posted
Error picture in console [url]http://gyazo.com/5907ca3a75ab7d68fe0a809127b58c00[/url] My Lua [QUOTE]function ENT:CreateMoneybag() if not IsValid(self) then return end if self:IsOnFire() then return end local MoneyPos = self:GetPos() local printamount = gemstone.sapphireprintamount local printtime = gemstone.sapphireprinttime if math.random(1, 1000) == 3 then self:BurstIntoFlames() end local amount = self:GetNWInt("PrintA") + printamount self:SetNWInt("PrintA",amount) self.sparking = false timer.Simple(printtime, function() PrintMore(self) end) end function ENT:Use(activator) if(activator:IsPlayer()) and self:GetNWInt("PrintA") >= 1 then activator:AddMoney(self:GetNWInt("PrintA")); GAMEMODE:Notify(activator, 1, 4, "You have collected $"..self:GetNWInt("PrintA").." from a Sapphire Printer.") self:SetNWInt("PrintA",0) end end function ENT:OnRemove() if self.sound then self.sound:Stop() end end[/QUOTE]
Change GAMEMODE:Notify to DarkRP.notify
[QUOTE=Bo98;42817053]Change GAMEMODE:Notify to DarkRP.notify[/QUOTE] For some reason i can just hold my E button on my keyboard and it just adds money to me [editline]10th November 2013[/editline] [B]It did nothing i still get nothing from it[/B]
Change AddMoney to addMoney
Sorry, you need to Log In to post a reply to this thread.