What's new

Skrypty & Kody Problem z funkcj?

Status
Not open for further replies.

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:
colin.png



Prosz? o pomoc i pozdrawiam,
Herwi
 

misztrz440

Banned
Joined
Dec 15, 2012
Messages
1,032
Reaction score
39
Odp: Problem z funkcj?

Nie powinno by? :
[LUA]getPlayerGUID(cid)[/LUA]

Zamiast :
[LUA]getPlayerAccountId(cid)[/LUA]

>??????
 

Herwi

Zakharia.pl
Joined
Feb 19, 2012
Messages
102
Reaction score
11
Odp: Problem z funkcj?

Nic nie da?o.
 

Herwi

Zakharia.pl
Joined
Feb 19, 2012
Messages
102
Reaction score
11
Odp: Problem z funkcj?

Od?wie?am
 
Status
Not open for further replies.
Top