Doggynub
LUA / C++
- Joined
- Sep 28, 2008
- Messages
- 2,541
- Reaction score
- 186
i want to ask somthn if i want to use table style in scriptin somthng that tp according to unique id
shoud it looks lke that
if untill here is right how to right in
to get the values from th place table.
i can't define what i need exactly but if someone understood me would be glad if he helped
shoud it looks lke that
Code:
idtable = {
id = 1000
id1 = 2000
}
placetable = {
place = {x= 1000, y=1000, z=7}
place1 = {x= 1002, y=1001, z=7}
}
function onStepIn(cid, item, position, fromPosition)
if isInArray(idtable, item.uid) then
Code:
doTeleportThing(cid, pos)
i can't define what i need exactly but if someone understood me would be glad if he helped