09-30-2013, 04:36 AM
I'm trying to store 2 return values in the same local and then store it in a ini file.
Here is the code I made:
It only stores ChunkX, no ChunkZ.
If I do print(Entity:GetChunkX(),Entity:GetChunkZ()) it gives me chunkX and ChunkZ but how can I store it in a local?
Here is the code I made:
Code:
function HandleChunkCommand( Player, Entity )
ChunksIni = cIniFile( "chunks.ini")
local ChunkPos = Entity:GetChunkX(),Entity:GetChunkZ()
ChunksIni:SetValue(ChunkPos, "Claimed", 1)
ChunksIni:WriteFile()
return true
end
If I do print(Entity:GetChunkX(),Entity:GetChunkZ()) it gives me chunkX and ChunkZ but how can I store it in a local?