Jump to content

The moVer

Members
  • Posts

    255
  • Joined

  • Last visited

Posts posted by The moVer

  1. أي وحدة صح

    انا جديد في الsql

    executeSQLQuery ( "INSERT INTO msg( playerAccount , themsg ) VALUES(?,?)", getPlayerAccount ( source ), themsg ) 
      
      
      
    

    or

      Check = executeSQLQuery ( "SELECT themsg FROM msgWHERE playerSerial=?", getPlayeraccount ( source ) ) 
    executeSQLQuery ( "INSERT INTO msg( playerAccount , themsg ) VALUES(?,?)", getPlayerAccount ( source ), themsg+check ) 
      
      
    

    افرض انو كل شي معرف

    msg

    source

    themsg

    يمكن الاثنين غلط

  2. لسلام عليكم ورحمة الله وبركاته

    اليوم جايبلكم شرح ما ادري وش اسمي :D

    فاذا احد عنده عنوان مناسب بكتبه تحت

    نبدا بالشرح

    اول شي الفكرة

    الفكرة: انك تقدر تبني مبنى انت بانيه عن طريق فنكشن واحد اذا ما فهمتوا رح تفهموا بالشرح

    اول شي تبني المبنى

    rHE7sAd.png

    ثاني شي تحدد اوجكت المركز ولازم يكون الاكثر انخفاضا لتسهيل عملية استعمال الفنكشن

    MWWVNeP.png

    الخطوة الي بعدها انو تحول الاوبجكت من ملف الماب الى

    createObject 
    

    وتعمل عملية الطرح ذي

    other object - mainobject

    يعني x-x

    y-y

    z-z

    44m5m6n.png

    ونحصل على النتائج زي كذا

    yyCSRZ1.png

    الحين نسوي

    createObject(ID,x,y,z)
    
    

    ID=الايدي حق الاوبجكت

    x,y,z خلها كذا

    بعدها نضيف النتائج

    يعني تصير المعادلة كذا

    رح نسمي ال x,y,z حق الotherobject=ox,oy,oz

    وال x,y,z حق الmainobject=mx,my,mz

    تصير كذا

    createObject(ID,X(ox-mx),Y(oy-my),Z(oz-mz))

      
    function buildtest (x,y,z) 
    createObject(1698 , x , y , z) 
    createObject(1698 , x+1.3 , y , z) 
    createObject(1698 , x-1.3, y , z) 
    createObject(1698 , x-2.6, y , z) 
    createObject(3054 , x-1.8, y+0.2 , z+2.6) 
    createObject(1676 , x+1.1, y+1, z+1.7) 
    createObject(1676 , x+1.1 , y-0.5 , z+1.7) 
    end 
      
      
    addEventHandler( "onClientResourceStart", getRootElement( ), 
        function (  ) 
     buildtest (2042,1541,10) 
     end 
    ); 
      
    

    الحين صار في فنكشن بناء

    وبس صار عندنا

    buildtest(x,y,z)

    والسلام عليكم وبالتوفيق للجميع

  3.   function dx_test () 
      
            dxDrawRectangle(203, 174, 298, 186, tocolor(0, 113, 255, 255), true) 
      
            dxDrawRectangle(277, 232, 139, 63, tocolor(255, 255, 255, 255), true) 
      
        end 
      
      
    sShowing = false 
      
    bindKey("f1","down", function ( ) 
      
    if ( sShowing == true ) then 
      
    removeEventHandler("onClientRender",root,dx_test) 
      
    showCursor ( false ) 
      
    else 
      
    addEventHandler("onClientRender",root,dx_test) 
      
    showCursor ( true ) 
      
    end 
      
    sShowing = not sShowing 
      
    end 
      
    ) 
    

    خطأك كان

    editانك حاطط اسم فنكشن

    dx_testواسم الفنكشن بالحدث

    كمان انت عامل الفنكشن مع حدث اول ما نشغل المود وحدث بس نضغط على اف 1

    فاذا ضغطت اف 1

    راح يجي خطأ انو الحدث مشغل من قبل

  4. function ab() 
         for k,v in ipairs(carid) do 
    local column1 = guiGridListAddColumn(GUIEditor.gridlist[2], "car", 0.5) 
    local column2 = guiGridListAddColumn(GUIEditor.gridlist[2], "id", 0.5) 
     local row = guiGridListAddRow(GUIEditor.gridlist[2]) 
                guiGridListSetItemText(GUIEditor.gridlist[2],row,column1,v[1] ,false, false) 
                guiGridListSetItemText(GUIEditor.gridlist[2],row,column2,v[2] ,false, false) 
                    
      end 
    end 
      
    

    مدري اذا صح

    راسي مقفل

    برب نوم

  5.   
    3.UsernameLogin = guiCreateEdit(0.24, 0.72, 0.17, 0.04, "", true) 
    4.guiSetAlpha(UsernameLogin, 0.00) 
    5.  
    6.function DrawEditbox() 
    7.local text = guiGetText(UsernameLogin) 
    8.dxDrawRectangle(screenW * 0.2360, screenH * 0.7161, screenW * 0.1699, screenH * 0.0443, tocolor(255, 255, 255, 255), true) 
    9.dxDrawText(text.."_", screenW * 0.2434, screenH * 0.7161, screenW * 0.3919, screenH * 0.7604, tocolor(0, 0, 0, 255), 0.80, "bankgothic", "left", "center", false, false, true, false, false) 
    10.end 
      
    

    مثال(مو اني الي سويته)

  6. guiGridListAddPlayers

    الوظيفة تقوم باضافة كل الاعبين الأون لاين بالسيرفر للقريد لست ;

    أعرف ان الوظيفة قديمة , ولاكن سويتها على طريقتي وبشكل مرتب وتحققات للتأكد من عمل الفنكشن

    Syntax - السنتاكس

    bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )
    
    

    Required Arguments - الأرقمنات المطلوبة

    * gridList: The grid list element

    * columnIndex: Column ID

    * section: Determines if the item is a section

    * number: Tells whether the text item is a number value or not (used for sorting)

    Returns -- ارجاع القيمة

    Return all players in a grid list, false otherwise. - يقوم بأرجاع قيمة اسماء الاعبين بالقريد لست

    Code - كود الوظيفة

    function guiGridListAddPlayers( GridList, Column, Section, Number ) 
        if( getElementType( GridList ) == "gui-gridlist" ) then 
        assert( tonumber( Column ), "Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got " .. tostring(Column) .. "]" ) 
            if( Section == false or Section == true ) then 
                if( Number == false or Number == true ) then 
                    for _, player in ipairs( getElementsByType('player') ) do 
                        guiGridListClear( GridList ) 
                            local Row = guiGridListAddRow( GridList ) 
                            guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number ) 
                            end  
                        else 
                        error("Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got " .. tostring(Number) .. "]") 
                    end 
                else 
                error("Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got " .. tostring(Section) .. "]") 
            end 
        end 
    end 
    

    Example - مثال

    This example add all online players in the server to a grid list

      
    -- Grid list  
        local screenW, screenH = guiGetScreenSize() 
        Main_GridList = guiCreateGridList((screenW - 233) / 2, (screenH - 357) / 2, 233, 357, false) 
        guiGridListAddColumn(Main_GridList, "Players", 0.9) 
        guiSetVisible( Main_GridList, false ) 
      
    -- For show Grid List 
    bindKey( "F10", "down", function( ) 
        guiSetVisible( Main_GridList, not guiGetVisible( Main_GridList ) ) 
        showCursor( not isCursorShowing( ) ) 
    end ) 
      
    -- This command add all players to a grid list 
    addCommandHandler( "addPlayers", function( ) 
        guiGridListAddPlayers( Main_GridList, 1, false, false ) 
    end ) 
      
    

    Author: MR.GRAND

    Hint: This function can be useful, Shortcut way Add to the grid list of players.

    في أمان الله تعالى

    :)

    +

    غير اسم الجدول حق السيرات

  7. السلام غليكم

    انا عندي مشكلة

    والي هي اني فاتح سيرفر تكتيك

    لما اطلق سنايبر يطلق مرة وبعدها يوقف مدري ليش في واحد قلي زيمم ومدري وشو

    زيم =zeem

    مدري وش ذا اتمنى الحل

  8. السلام عليكم

    كيف حالكم

    ن

    يا شباب بسأل سؤال ولي هو وش هي الرام بلعبة

    MTA

    وش فايدتها

    وكيف اعليها لانه انا 4 رام

    وهي تستخدم 0.1042 تقريبا

×
×
  • Create New...