Yan18
Member
- Joined
- Jun 14, 2014
- Messages
- 104
- Solutions
- 3
- Reaction score
- 17
I have a doubt with _(underscore) in the Lua for loop. Follow an example below:
What do _(underscore) in a for loop?
Code:
function onUse(cid)
for _, pos in pairs(tile_pos) do
pos.stackpos = 255
players = getThingfromPos(pos)
if isPlayer(players.uid) then
doTeleportThing(players.uid, to_pos, false)
end
end
return true
end
What do _(underscore) in a for loop?