GarQet
Own3d!
- Joined
- Feb 10, 2009
- Messages
- 1,381
- Solutions
- 14
- Reaction score
- 81
Siemanko!
Mam mały problem...
Skrypt ogólnie działa, ale ładnie mi spamuje konsole TFSka błędem z którym nie mogę się uporać :<
Skrypt:
Jak już mówiłem skrypt działa poprawnie, ale wywala błąd:
Nie wiem czemu wywala błąd, uważam że wszystko jest dobrze.
Proszę o pomoc, z góry dzięki +rep
Wy mnie nie lubicie, że nie chcecie mi pomóc?
Mam mały problem...
Skrypt ogólnie działa, ale ładnie mi spamuje konsole TFSka błędem z którym nie mogę się uporać :<
Skrypt:
Code:
function onLook(cid, thing, position, lookDistance)
local DB_points = db.getResult("SELECT `points` FROM `players` WHERE `id` = '"..getPlayerGUID(thing.uid).."';")
points = DB_points:getDataInt("points")
DB_points:free()
if(isPlayer(thing.uid) == true) then
doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " have "..points.." points")
return true
end
end
Dałem thing.uid bo jak daje cid to pokazuje mi ilość danego gracza który daje look na innego."..getPlayerGUID(thing.uid).."
Jak już mówiłem skrypt działa poprawnie, ale wywala błąd:
Code:
[Error - CreatureScript Interface]
data/creaturescripts/scripts/points.lua:onLook
Description:
data/creaturescripts/scripts/points.lua:3: attempt to concatenate global 'getPlayerGUID' (a function value)
stack traceback:
data/creaturescripts/scripts/points.lua:3: in function <data/creaturescripts/scripts/points.lua:1>
Nie wiem czemu wywala błąd, uważam że wszystko jest dobrze.
Proszę o pomoc, z góry dzięki +rep
Wy mnie nie lubicie, że nie chcecie mi pomóc?
Last edited by a moderator: