Skip to content

Commit

Permalink
print for removeentityfromdb
Browse files Browse the repository at this point in the history
  • Loading branch information
GlorifiedPig committed May 25, 2020
1 parent 5879a8b commit 6d913fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/glorifiedbanking/libraries/sv_glorifiedbanking_gpe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ end
function GlorifiedBanking.GlorifiedPersistentEnts.RemoveEntityFromDB( ent )
if not GlorifiedBanking.GlorifiedPersistentEnts.EntClasses[ent:GetClass()] then return end
if ent.EntID != nil then
print( "[GlorifiedBanking.GlorifiedPersistentEnts] Deleted Entity ID " .. ent.EntID .. " from table `" .. GlorifiedBanking.GlorifiedPersistentEnts.TableName .. "`" )
sql.Query( "DELETE FROM `" .. GlorifiedBanking.GlorifiedPersistentEnts.TableName .. "` WHERE `RowID` = " .. ent.EntID )
end
end
Expand Down

0 comments on commit 6d913fb

Please sign in to comment.