Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. TAPL

    Players

    getAlivePlayers return table so you should use #alive instead of alive. Also you've checked if there less than or equal to zero players which this mean there no players in the server and this make no sense because the code wouldn't have executed if there's no players at all.
  2. Where is your code?
  3. TAPL

    SQL problem

    You should check this website http://www.w3schools.com/sql/
  4. Server Side: addEventHandler("onResourceStart", resourceRoot, function() outputChatBox("تم تصميم وبرمجه هذا المقر من قبل", root, 255, 255, 255, true) end)
  5. TAPL

    SQL problem

    Your code doesn't make much sense but anyway it should look something like: function SQLTest() if executeSQLQuery("CREATE TABLE IF NOT EXISTS aa(Name TEXT, Cash NUMBER, Health NUMBER)") then if executeSQLQuery("INSERT INTO aa(Name, Cash, Health) VALUES(?,?,?)", "myName", 1554, 100 ) then -- 100 health local asa = 150 + getElementHealth(getPlayerFromName("What?")) -- should be 100 + now if executeSQLQuery("UPDATE aa SET Name = ?,Cash= ?,Health = ? WHERE Health = 100", "myName", 140, asa) then -- executed local Health = executeSQLQuery("SELECT * FROM aa WHERE Health = ?", asa) -- selected if #Health ~= 0 then outputChatBox ( Health[1]["Health"] ) -- but still the same 100 end end end end end SQLTest()
  6. TAPL

    mysql insert

    split
  7. Put this server side: addEventHandler("onPlayerLogin", root, function(_, acc) local accName = getAccountName(acc) if isObjectInACLGroup("user."..accName, aclGetGroup("VIP")) then setElementData(source, "VIP", true) end end) Then use this client side: if getElementData(localPlayer, "VIP") == true then Lua tag is broken.
  8. ينقل الى قسم البرمجة
  9. and fix "Add support for custom animations" this is important bugs No, they aren't important bugs. You're constantly posting this :~ on the forums or on Mantis. Those will come when they come IF they come (They probably won't). How about instead of complaining all the time about it, you learn to program and do it yourself? This community is too full of beggars like you and it's the reason many of our staff have stopped developing. البندر وين راحت جبهتك؟
  10. الموضوع عبارة عن اتهامات بالسرقة و ماله اي علاقة بالقسم و من الواضح ان هذا راح يسبب صفحات لا تنتهي من الأتهامات و الشجار يغلق
  11. TAPL

    [BUG]

    You're welcome.
  12. TAPL

    [BUG]

    Because you didn't define the table. GUIEditor = { button = {} }
  13. احداثيات في كود دم؟ الله يستر عليك
  14. If you just read. This link still working http://www.filefront.com/17412771/BaseMode.zip i have reupload it at mediafire http://www.mediafire.com/?4em45kgb5nd98rl
  15. /debugscript 3
  16. وش السكربت وكيف تدفع أنت أصلاً .. امس قلت لك بسكايب بس انت ما تبي تبرمج
  17. ما يحتاج تريقر موجود افنت كلينت https://wiki.multitheftauto.com/wiki/OnClientClick
  18. TAPL

    سؤال

    ناقص الخط الي بالأخير ض1 http://mta.dzek.eu/mmove/
  19. TAPL

    سؤال

    تقدر تجرب الموقع ذا http://mta.dzek.eu/mmove
  20. بالكلينت -- لما يضغط على الزر حط المنت داتا باللون الي اختاره setElementData بالسيرفر -- onPlayerChat استخدم الأفنت cancelEvent استخدم لألغاء الأفنت getElementData جيب اللون من الالمنت داتا عشان تطلع الكلام بالشات باللون الي جبته من الألمنت داتا outputChatBox و استخدم
  21. I meant what i wrote! Can't you see line 2? hmm = getElementModel ( source ) if hmm == "Skin ID" then -- moveobject or whatevet else -- You are comparing integer with string. It's pretty clear.
  22. Are you making examples for him? * getElementModel return integer NOT string. * You've used variable accName while you have it defined as hmm. Edited !!
  23. anothermarker = createMarker(x, y, z, 'cylinder', 2.0, 255, 0, 0, 150) -- replace x y z setElementInterior(anothermarker, 18) function firstJoin(hitElement) if hitElement == localPlayer and not isPedInVehicle(hitElement) then if source == anothermarker and not isElement(joinmarker) then joinmarker = createMarker(1727, -1638.5, 19, 'cylinder', 2.0, 255, 0, 0, 150) setElementInterior(joinmarker, 18) elseif source == joinmarker then triggerServerEvent("spawnMe", localPlayer) end end end addEventHandler("onClientMarkerHit", root, firstJoin) addEvent("spawnMe", true) addEventHandler("spawnMe", root, function() spawnPlayer(source, 2307.8564453125, 556.2001953125, 7.78125+1) setCameraTarget(source) end)
×
×
  • Create New...