Is there any problem?

GreatBayethe

Chieftain
Joined
Jul 12, 2017
Messages
24
Code:
local tFatihBuildings = {}
for row in DB.Query("SELECT BuildingType FROM Building_YieldChanges Where YieldType = 'YIELD_FAITH'") do
    table.insert(tFatihBuildings, {["ID"] = GameInfoTypes[row.BuildingType]})
end
I made a code, but it doesn't work. is there any problem?
 
I don't see anything obviously wrong with your code. But the issue would likely be how you are structuring the syntax to pull info back out of the table once it has been filled with data.

The second question is whether or not you have the lua file activated properly.
 
Top Bottom