Herwi
Zakharia.pl
- Joined
- Feb 19, 2012
- Messages
- 102
- Reaction score
- 11
Pracuj? na TFS 1.1
Mam problem z poni?sz? funkcj?:
[lua]
function getAccountLanguage(cid)
local resultId = db.executeQuery("SELECT `language` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid)) -- to jest 122 linia w global.lua
if resultId ~= false then
local days = result.getDataInt(resultId, "language")
result.free(resultId)
return days
end
return 0
end
[/lua]
R?wnie? nie dzia?a z db.storeQuery(query)
Mam dorobion? te? funkcj? getPlayerAccountId(cid):
[lua]function getPlayerAccountId(cid) local p = Player(cid) return p ~= nil and p:getAccountId() or false end[/lua]
Funkcj? getAccountLanguage(cid) mam u?yt? w skrypcie npc:
W lib mam te? zdefioniowane:
[lua]ENGLISH = 0
POLISH = 1[/lua]
Przy pr?bie odpalenia serwera, pojawia si? b??d:
Prosz? o pomoc i pozdrawiam,
Herwi
Mam problem z poni?sz? funkcj?:
[lua]
function getAccountLanguage(cid)
local resultId = db.executeQuery("SELECT `language` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid)) -- to jest 122 linia w global.lua
if resultId ~= false then
local days = result.getDataInt(resultId, "language")
result.free(resultId)
return days
end
return 0
end
[/lua]
R?wnie? nie dzia?a z db.storeQuery(query)
Mam dorobion? te? funkcj? getPlayerAccountId(cid):
[lua]function getPlayerAccountId(cid) local p = Player(cid) return p ~= nil and p:getAccountId() or false end[/lua]
Funkcj? getAccountLanguage(cid) mam u?yt? w skrypcie npc:
W lib mam te? zdefioniowane:
[lua]ENGLISH = 0
POLISH = 1[/lua]
Przy pr?bie odpalenia serwera, pojawia si? b??d:
Prosz? o pomoc i pozdrawiam,
Herwi