zajacmp3
New Member
Heya guys! First i will present u a code that is not working on my TFS 0.2 : < The code is supposed to work on evolution server...
Can this work on my?
With this first one i havent got any errors in console... it just didnt work in game.
I first tried with this code but i had only errors with it.
hmmm... can anyone help me?
Can this work on my?
With this first one i havent got any errors in console... it just didnt work in game.
PHP:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=1142, y=1102, z=6, stackpos=1}
getgate = getThingfromPos(gatepos)
if item.uid == 6001 and item.itemid == 1945 and getgate.itemid == 3519 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 6001 and item.itemid == 1946
and getgate.itemid == 0 then
doCreateItem(3519,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Niedziala :<")
end
return 1
end
I first tried with this code but i had only errors with it.
PHP:
function onUse(cid, item, frompos, item2, topos)
gatepos = {x=1093, y=963, z=7, stackpos=1}
getgate = getThingfromPos(gatepos)
if item.uid == 3001 and item.itemid == 1945 and getgate.itemid == 3361 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 3001 and item.itemid == 1946
and getgate.itemid == 0 then
doCreateItem(3361,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
hmmm... can anyone help me?
Last edited: