QoRaY Posted March 11, 2013 Share Posted March 11, 2013 Help !! Code can not run.... "server.lua" function onResourceStart() Roket = createObject(3256, 151.51525878906, -1924.28515625, 1.7684149742126, 0.0, 0.0, 22) setTimer ( Firlatici, 1000, 0 ) -----Objeler------------------------------------------------------------------ createObject(14553, 183.2109375, -1942.396484375, 426.20306396484, 0.0, 0.0, 301.99768066406) createObject(2933, 148.14942932129, -1917.0718994141, 513.27954101563, 77.211517333984, 85.589660644531, 208.52209472656) createObject(1348, 147.12089538574, -1911.8510742188, 514.83880615234, 0.0, 0.0, 293.75) createObject(17511, 122.767578125, -1848.873046875, 504.611328125, 0.0, 0.0, 90.0) createObject(17055, 158.11459350586, -1874.6378173828, 521.19000244141, 0.0, 353.9838, 86.5622) createObject(1391, 85.307281494141, -1868.6457519531, 551.50366210938, 0.0, 0.0, 0.0) createObject(3255, 124.14200592041, -1848.7220458984, 520.01153564453, 0.0, 0.0, 90.0) createObject(3427, 149.05744934082, -1850.7489013672, 520.28454589844, 0.0, 0.0, 0.0) createObject(16778, 140.4736328125, -1821.2270507813, 514.49816894531, 0.0, 0.0, 0.0) createObject(17511, 122.767578125, -1848.873046875, 504.611328125, 0.0, 0.0, 0.0) createObject(17511, 122.767578125, -1848.873046875, 504.611328125, 0.0, 0.0, 0.0) createObject(16340, 98.174018859863, -1832.958984375, 523.29711914063, 0.0, 0.0, 0.0) createObject(13831, 147.36328125, -1887.9794921875, 222.43519592285, 0.0, 0.0, 0.0) -----Objeler------------------------------------------------------------------- end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onResourceStart) function Firlatici () local x, y, z = getElementPosition ( Roket ) if math.floor(z) == 1 then moveObject(Roket,1, 151.51525878906, -1924.28515625, 2.7684149842126, 0.0, 0.0, 22) Bekletimer = setTimer ( Bekle, 30000, 0 ) outputChatBox ( "#00FF00[sAHIL] #FF0000Roket Birazdan Havalanacak.", value, 255,0,0,true ) elseif math.floor(z) == 504 then moveObject(Roket,1 , 151.51525878906, -1924.28515625, 503.22534179688, 0.0, 0.0, 22) Bekletimerasagi = setTimer ( asagi, 30000, 0 ) outputChatBox ( "#00FF00[sAHIL] #FF0000Roket Asagiya Iniyor !", value, 255,0,0,true ) end end function Bekle () moveObject(Roket,120000 , 151.5146484375, -1924.28515625, 504.22534179688, 0.0, 0.0, 0.0) -- Objeyi o kordinatlara götür killTimer (Bekletimer) end function asagi () moveObject(Roket,120000, 151.51525878906, -1924.28515625, 1.7684149742126, 0.0, 0.0, 21.99462890625) -- Objeyi o kordinatlara götür killTimer (Bekletimerasagi) end Link to comment
novo Posted March 11, 2013 Share Posted March 11, 2013 Any error? Use /debugscript 3 If I'm not wrong, the problem is that you're setting a timer (line 3) on a function that isn't defined before, it's below the timer. Link to comment
QoRaY Posted March 11, 2013 Author Share Posted March 11, 2013 The problem is where the ANSI format. I could not color writings? Help. Link to comment
iPrestege Posted March 11, 2013 Share Posted March 11, 2013 Change the file format to UTF-8 . Link to comment
QoRaY Posted March 11, 2013 Author Share Posted March 11, 2013 Can you help me I could not do the color codes? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now