-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
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.
-
Where is your code?
-
You should check this website http://www.w3schools.com/sql/
-
Server Side: addEventHandler("onResourceStart", resourceRoot, function() outputChatBox("تم تصميم وبرمجه هذا المقر من قبل", root, 255, 255, 255, true) end)
-
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()
-
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.
-
* التجهيـز لـ اطلاق الأصدار [ 1.4 ] - نحتاج مساعدتكـ !
TAPL replied to iPrestege's topic in Arabic / العربية
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. البندر وين راحت جبهتك؟ -
الموضوع عبارة عن اتهامات بالسرقة و ماله اي علاقة بالقسم و من الواضح ان هذا راح يسبب صفحات لا تنتهي من الأتهامات و الشجار يغلق
-
احداثيات في كود دم؟ الله يستر عليك
-
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
-
وش السكربت وكيف تدفع أنت أصلاً .. امس قلت لك بسكايب بس انت ما تبي تبرمج
-
ما يحتاج تريقر موجود افنت كلينت https://wiki.multitheftauto.com/wiki/OnClientClick
-
بالكلينت -- لما يضغط على الزر حط المنت داتا باللون الي اختاره setElementData بالسيرفر -- onPlayerChat استخدم الأفنت cancelEvent استخدم لألغاء الأفنت getElementData جيب اللون من الالمنت داتا عشان تطلع الكلام بالشات باللون الي جبته من الألمنت داتا outputChatBox و استخدم
-
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.
-
Are you making examples for him? * getElementModel return integer NOT string. * You've used variable accName while you have it defined as hmm. Edited !!
-
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)
