Gelio
Senior User
- Dołączył
- Kwiecień 10, 2008
- Posty
- 617
- Liczba reakcji
- 98
- Wiek
- 29
Odp: [x.x][Skrypty] Zam?wienia
Powinno dzia?a?.
Pozdro,
Gelio
Spr?buj tak:GelioKod:function onUse(cid, item, frompos, item2, topos) local bless for i=1, 5 do if(getPlayerBlessing(cid,i) == TRUE) then bless[i] = "yes" else bless[i] = "no" end end local wiadomosc = "Active blessings:\nFirst: ".. bless[1] .." | Second: ".. bless[2] .." | Third: ".. bless[3] .." | Fourth: ".. bless[4] .." | Fifth: ".. bless[5] doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,wiadomosc) end
Skrypt nie dzia?a nic si? nie pokazuje, ale te? nie pisze you can not use this object ;p
@edit:
a to b?edy w silniku
Kod:[03/03/2009 08:37:22] Lua Script Error: [Action Interface] [03/03/2009 08:37:22] data/actions/scripts/tools/ankh.lua:onUse [03/03/2009 08:37:22] data/actions/scripts/tools/ankh.lua:7: attempt to index local 'bless' (a nil value) [03/03/2009 08:37:22] stack traceback: [03/03/2009 08:37:22] data/actions/scripts/tools/ankh.lua:7: in function <data/actions/scripts/tools/ankh.lua:1>
Kod:
function onUse(cid, item, frompos, item2, topos)
local bless = {}
for i=1, 5 do
if(getPlayerBlessing(cid,i) == TRUE) then
bless[i] = "yes"
else
bless[i] = "no"
end
end
local wiadomosc = "Active blessings:\nFirst: ".. bless[1] .." | Second: ".. bless[2] .." | Third: ".. bless[3] .." | Fourth: ".. bless[4] .." | Fifth: ".. bless[5]
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,wiadomosc)
end
Pozdro,
Gelio