Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. ^ resourceRoot تأكد انك رابط الأفنت بـ
  2. Where? I can't see. Can you show me? Nothing in this code, have you tried it?
  3. The query result isn't numeric table (line 33), therefore you should use pairs.
  4. You should return the result not the query. And the close bracket at line 1 is missing.
  5. الي يضحك مو المواصفات الكلام الي تحته خط
  6. It's return the result of the query. Also for update and insert use dbExec because there's no result will be returned.
  7. You're welcome.
  8. Try/ local screenW, screenH = guiGetScreenSize() local x, y = (screenW/1024), (screenH/768) local size = y*1.50 --- the size of the text font addEventHandler("onClientRender", root, function() local playerCoins = getPlayerCoins(getLocalPlayer()) dxDrawText("C"..gPlayerCoins(playerCoins), x*795, y*170, x*973, y*198, tocolor(0, 0, 0, 255), size, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("C"..gPlayerCoins(playerCoins), x*795, y*166, x*973, y*198, tocolor(0, 0, 0, 255), size, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("C"..gPlayerCoins(playerCoins), x*800, y*166, x*973, y*196, tocolor(0, 0, 0, 255), size, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("C"..gPlayerCoins(playerCoins), x*795, y*171, x*971, y*198, tocolor(0, 0, 0, 255), size, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("C"..gPlayerCoins(playerCoins), x*800, y*171, x*971, y*198, tocolor(0, 0, 0, 255), size, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("C"..gPlayerCoins(playerCoins), x*796, y*168, x*971, y*196, tocolor(0, 0, 0, 255), size, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("C"..gPlayerCoins(playerCoins), x*797, y*169, x*972, y*197, tocolor(100, 100, 255, 200), size, "pricedown", "left", "top", false, false, false, false, false) end)
  9. https://wiki.multitheftauto.com/wiki/Scripting_Introduction
  10. if not table145[thePlayer][i] then
  11. Line 18: showcursor should be showCursor. And it shouldn't be inside onClientPreRender event .
  12. setPedFightingStyle
  13. Copy the meta again from my reply.
  14. TAPL

    What if

    In your example it will break the numeric loop only. Use return if you want to break both loop (whole function will stop also). If you want to break both loop without stopping the whole function you can use variable. function theLoop() local brk = false for k, ped in ipairs(getElementsByType("ped")) do for i=1, 16 do if getElementData(ped, "orderNumber") == i then if getElementHealth(ped) < 20 then outputChatBox("Found a ped with lower than 20 hp") brk = true break end end end if brk then break end end -- any code here will still execute if you used break. end function theLoop() local brk = false for k, ped in ipairs(getElementsByType("ped")) do for i=1, 16 do if getElementData(ped, "orderNumber") == i then if getElementHealth(ped) < 20 then outputChatBox("Found a ped with lower than 20 hp") return end end end end -- any code here won't execute if you used return. end Anyway, wouldn't it be easier just to do this? function theLoop() for k, ped in ipairs(getElementsByType("ped")) do if getElementData(ped, "orderNumber") >= 1 and getElementData(ped, "orderNumber") <= 16 then if getElementHealth(ped) < 20 then outputChatBox("Found a ped with lower than 20 hp") break end end end end
  15. هذي السالفه مادريت عنها بس سالفة موتك صدقتها وكان بحذفك من سكايبي وش ابي بميت بسكايب =) بس ترا مايصلح تقول انك متت وكذا .
  16. outputChatBox doesn't seems to work with team element, therefore you will have to make the loop.
  17. Try with pairs.
  18. 'onClientVehicleDamage' getElementHealth cancelEvent
  19. Wrong meta, dff and txd not script scr. "Boss" description="nemesis" type="script" version="2.2" /> Edit: copy again.
  20. الدعم حقهم ميت 4 ايام بس عشان تفعيل و قبل يومين وصلتني رسالة ان في هجوم دوس و بعد دقائق رسالة ثانية ان الهجوم وقف و من وقتها من ادخل ادخل سيرفري اللوس يناقز 30 40 50 90 0 50 90 50 40 30 80 90 40 10 و يطلعني و يسوي بلوك على الآي بي لمدة ثواني و الدعم حقهم ما يردون
  21. source not defined.
×
×
  • Create New...