Search the Community
Showing results for tags 'long execution'.
-
Hello, I need some help here! I'm making a new gamemode for a server, but there is an error that's appearing and it's making ' Network Trouble ', it's like a infinite error! This is what appears at console: logs.txt [2016-11-17 13:06:50] WARNING: Long execution (rustgamemode) [2016-11-17 13:06:51] WARNING: [rust]\rustgamemode\vehicles_System.lua:120: Bad argument @ 'setElementData' [Expected element at argument 1, got nil] [2016-11-17 13:06:51] WARNING: [rust]\rustgamemode\vehicles_System.lua:121: Bad argument @ 'setElementData' [Expected element at argument 1, got nil] and then the same errors appears again, it's like infinite ultil I shutdown the server. And there is the ' vehicles_System.lua (server-side)' file where the error appears : function createPostos () for i,postos in ipairs(posicoesPostos) do local x,y,z = postos[1],postos[2],postos[3] postosCol = createColSphere(x,y,z,3) setElementData(postosCol,"postogasosa",true) setElementData(postosCol,"gasosanoposto",100) local patrolTime = setTimer( function() for i, postosdestruir in ipairs(getElementsByType("colshape")) do if getElementData(postosdestruir,"postogasosa") then destroyElement(postosdestruir) createPostos() --respawn patrolstation (give them 100 fuel again) else -- end end end,3600000,1) --1 hour 'till respawn fuel again end end createPostos() --make the patrolstation colshape and give them 100 fuel Can you guys help me with this issue? I don't know how to fix it. Sorry for my bad english! hehe