Jump to content

salh

Members
  • Posts

    206
  • Joined

  • Last visited

Everything posted by salh

  1. setPedStat(player, 77, *he want here number* ) delate ak47 Weapon skills: Note: see Weapon skill levels for the values that advance weapon skills. 69: WEAPONTYPE_PISTOL_SKILL 70: WEAPONTYPE_PISTOL_SILENCED_SKILL 71: WEAPONTYPE_DESERT_EAGLE_SKILL 72: WEAPONTYPE_SHOTGUN_SKILL 73: WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL 74: WEAPONTYPE_SPAS12_SHOTGUN_SKILL 75: WEAPONTYPE_MICRO_UZI_SKILL 76: WEAPONTYPE_MP5_SKILL 77: WEAPONTYPE_AK47_SKILL 78: WEAPONTYPE_M4_SKILL 79: WEAPONTYPE_SNIPERRIFLE_SKILL 80: SEX_APPEAL_CLOTHES 81: GAMBLING and put number 77
  2. why you export the function you can just function isPlayerInGroup(player, groupId) if isElement(player) and groupId then groupId = tonumber(groupId) if groupId and availableGroups[groupId] then local playerGroups = getElementData(player, "player.groups") or {} if playerGroups and playerGroups[groupId] then return true end end end return false end function text() if isPlayerInGroup(localplayer,1) then outputChatBox("Test") end end text() if the code have error show me the debug
  3. من يومك مبدع ي قلبي
  4. salh

    Vehicle-system

    Give us the code if you want us help you?
  5. salh

    Vehicle-system

    [main]/mysql/connection.Lua:206: bad argument #2 to 'mysql_escape_string' (string expected, got boolean) here say : the cod need string you put boolean boolean = true & false string = text
  6. اذا تبي برنامج visual studio visual code اذا تبي موقع https://repl.it/languages/Lua بس زي ما قال دابل اوامر الخاصة بلعبة مارح تشتغل معك
  7. تبي تتعلم Lua تعلمها لغة عامة مو خاصة ل mta يعني تعلمها من الاساسي تبي طرق تتعلم https://www.Lua.org/pil/contents.html هاذا الموقع كأنك تتعامل مع الويكي فيه كل شي
  8. what debug say?
  9. let us see the client
  10. salh

    Edit

    try if (DGS:dgsGetText(PasseditBox) == "444") then DGS:dgsSetText(LogineditBox , "321") elseif (DGS:dgsGetText(PasseditBox) == "321") DGS:dgsSetText(Hello , "321") oh no use this GUIEditor = { button = {}, window = {}, edit = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 613) / 2, (screenH - 326) / 2, 613, 326, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(19, 42, 277, 96, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(313, 42, 277, 96, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(168, 148, 277, 96, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(10, 263, 593, 49, "Test", false, GUIEditor.window[1]) function salh ( button ) if button == "left" then if guiGetText(GUIEditor.edit[1]) == "123" then guiSetText(GUIEditor.edit[2], "321") end if guiGetText(GUIEditor.edit[2]) == "321" then guiSetText(GUIEditor.edit[3], "321") end end end addEventHandler ( "onClientGUIClick", GUIEditor.button[1], salh, false ) use the click function
  11. server side?
  12. where is b_date?
  13. use function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end addEventHandler ( "onClientClick", root, function ( button, state ) if ( button == "left" and state == "down" ) then if ( isMouseInPosition ( the postion of the button ) ) then -- code end end end )
  14. the server give you message? if he give you tell me what the message
  15. ممكن تختصر كل هاذا و تقول وش تبي بضبط؟
  16. print?
  17. انا ما قلت انه مو تحديث طال عمرك (:
  18. ما تغير شي بس صار المشاركات حق السكرت في الرئيسية و التسجيل صار فيه لحسه (:
  19. use guiGetText? --try this local screenWidth, screenHeight = guiGetScreenSize ( ) editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, "", true ) function salh() dxDrawText ( guiGetText(editBox),44, 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.0, "pricedown" ) end addEventHandler ( "onClientRender", root, salh)
  20. حالوت اعدل اسوي اي شي يقولي في الديبق stack overflow في هاذا السطر if guiProgressBarGetProgress( guiElement ) < 100 then
  21. طيب بس تعديلك للكود ما يشتغل (:
  22. طيب الحين وش الفرق اذا استحدمت الريكاشون ميثود او التايمر.؟
×
×
  • Create New...