Jump to content

Markeloff

Members
  • Posts

    230
  • Joined

  • Last visited

Everything posted by Markeloff

  1. As soon as possible? This is ridiculous.
  2. You forgot the credits to www.youtubeinmp3.com Otherwise, perfect!
  3. It's solved, thank you guys.
  4. Hello, So, here's my table. For example, I'm in the first row of the table which index is 0, how to get the next row and its data which is indexed at 1. local radios = { {0,"Radio Off",nil}, {1,"Radio 1","link"}, {2,"Radio 2","link"}, {3,"Radio 3","link"}, {4,"Radio 4","link"}, {5,"Radio 5","link"}, } function setCurrentChannel(id) if (id < 0) or (id > #radios) then return false; end; outputChatBox("setting done") channelID = id; for i,v in ipairs (radios) do if v[1] == id then actual = v[2] suivant = -- is the v[2] of next row of the table previous = -- is the v[2] of previous row of the table outputChatBox(v[2]) end return true; end end
  5. Why are you going to compile it? It's because it will be better than Castillo's gang system?
  6. Wassim, I tried it but, the same problem. Edit : it worked, thank you. I haven't got it yet, I did the same you had done but, it didn't work.
  7. So, I want to know how to solve getting debug errors about expected element at argument 1, got nil. Actually, this happens to be everytime I use a timer containing a whole function in a function. I know source isn't defined in the function inside this timer but doesn't every function have 'source' as argument by random? So even when I tried to put the argument source in the function but the same problem. I solved this by excluding the function from being inside the timer but I need to know how to solve it this way. function CheckingOnLogin() setTimer ( function() if isPlayerInSafeZone(source) then outputChatBox(getPlayerName(source).." logged in and in safe zone",root,255,0,0) setElementData(source,"isPlayerInSafeZone",true) toggleControl (source, "fire", false) toggleControl (source, "aim_weapon", false) else outputChatBox(getPlayerName(source).." logged in and not in safe zone",root,255,0,0) end end, 5000, 1 ) end addEventHandler("onPlayerLogin",root,CheckingOnLogin)
  8. Thank you. Website launched : http://skygamingweb.tk/
  9. Salam Alaykom, SkyGaming is a community created by Markeloff, Kraft and Blaze in August 2014. Visit our Website at : http://skygamingweb.tk Website - About US Zombie RPG : mtasa://192.121.166.110:22004 Zombie vs Humans : mtasa://192.121.166.110:22005 Team Deathmatch : mtasa://192.121.166.110:22010 You can contact us at my skype : markeloff.smith
  10. playSound onClientPlayerWasted Or use the wiki example function wasted (killer, weapon, bodypart) local sound = playSound("sounds/wasted.mp3") --Play wasted.mp3 from the sounds folder setSoundVolume(sound, 0.5) -- set the sound volume to 50% end addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted)
  11. Markeloff

    Questions

    Maybe because you are using the same variables name.
  12. Markeloff

    Table :s

    http://www.lua.org/pil/2.5.html
  13. when phones become computers.
  14. If they can make a hack that bypasses our anti-cheat and is willing to give it to us, sure. He can probably make more money selling it to idiots though. They (he) will give you the cheat for sure to get the prize then sell million of copies to idiots. He will benefit from scamming them, however he will not be able to cheat as you will find ways to block the way he used to bypass your security.
  15. Aren't you encouraging coders to create their hacks for MTA with this way?
  16. Let's party! Good job for the new features, functions and bug-fixes!
  17. Good job Diesel Simple and unique.
  18. Hey guys, Where can I download the 1.4 mta server files for linux OS? I couldn't find the baseconfig for 1.4. Thanks for the help.
  19. Run as administrator and ensure that the game exits gracefully. Solved.
  20. After updating to r6277, the resolution settings doesn't get saved.
  21. local connection = nil function query( ... ) if connection then local qh = dbQuery( connection, ... ) local result = dbPoll( qh, -1 ) return result else return false end end function querySingle( str, ... ) if connection then local result = query( str, ... ) if type(result) == 'table' then return result[1] end return result else return false end end I hope it helps.
  22. Nice hypo, but I will be using it. I know that DownloadFile isn't functional yet, but fetchRemote can solve the problem. Thank you guys, I solved the problem.
×
×
  • Create New...