Lopaskurwa
Active Member
- Joined
- Oct 6, 2017
- Messages
- 876
- Solutions
- 2
- Reaction score
- 49
Trying to create !showpztime talkaction but stuck with getCondition a nil value error, checked my previous codes that uses getCondition pretty much all of them created exactly the same, but it doesnt want to work this time
Lua:
function onSay(cid, words, param, channel)
if getCondition(CONDITION_INFIGHT, CONDITIONID_DEFAULT) then
return doPlayerSendCancel(cid, "You Don't Have Pz") and doSendMagicEffect(getThingPos(cid), 2)
end
doPlayerSendTextMessage(cid,27, "You Have To Wait "..getInFightTicks(cid).." Second For Pz.")
return true
end