Jump to content

abu5lf

Members
  • Posts

    2,193
  • Joined

  • Last visited

Posts posted by abu5lf

  1. Well, I already made a chart script in the past and I still could recall how to calculate the values + how to script in MTA.

    Back then I thought how to calculate the height and other values (that's really basic percentage maths).

    Thank you :D

  2. I have the following code:

    width, height = 450, 300 -- Pick a width and a height. 
    lowWidth , higheight = { 1, 450 }, { 1, 300 } -- Find the lowest and highest values in the range 
      
    function lineChart( ) 
        row_value = width / ( lowWidth[1] / lowWidth[2] ) / ( higheight[1] / higheight[2] ) -- Divide the width by the amount of values you have for that range to get the width per column 
        highest_row_value = height / math.random( 100 ) -- Divide the the height by some random number you pick and to get a height per row. 
        chart_height = ( row_value + highest_row_value ) 
      
        value = chart_height * (row_value / highest_row_value)-- Calculate the height for your chartvalue by doing chart_height * (row_value / highest_row_value). You can also save the last height to connect the last point with the next point. 
        dxDrawRectangle( 200, 200, width, height, tocolor( 100, 100, 100, 200 ) ) 
        dxDrawLine( 200, 200, value / highest_row_value, value ) 
    end 
    addEventHandler( "onClientRender", root, lineChart ) 
    

  3. You have to use DirectX functions. First draw all the background and then draw all the values into that chart.

    I am not going into the maths, because that's your job (you can still ask for small help on the calculation).

    I know this functions, but I'm bad on maths.

    Can you give me e.g?

  4. هه فعلأ انك انسان غبي لدرجة كبيرة

    انا كنت حاب افيدك بس بالرابط بالطريقة والخ .. هذا اللي اقدر افيدك به قول مشكور لا تقول شي احسن بس تجلس تسوي انا الكبير انا اللي ما احد قدي خلك ساكت احسن

    لكن فعلأ ناس ما تستاهل تعطيها وجه .

    انت الغلطان تعطي الناس ذي وجه

    م تخبر ذا ؟

    لازم يسوي ان هوه الي فاهم وعارف

    وهوه اخر شي مو عارف وش الخط البياني

    ي رجال خله يدبر وضعه

    لو تشارك بشي تلقاه قاعد يشتغل فيه

    بس يروح يحطمك بعد م تفيده

    تكفىى عااااشق ابي تبرمج لسيرفري ببلاش تكفىى

    ههههههههههههههههههههههههه

    تكففففففففىى ولا ابقلب علييييك تكفىئ

    واخرتها مسوي طلب مبرمج واخذ سييييييفوووووون

  5. هه فعلأ انك انسان غبي لدرجة كبيرة

    انا كنت حاب افيدك بس بالرابط بالطريقة والخ .. هذا اللي اقدر افيدك به قول مشكور لا تقول شي احسن بس تجلس تسوي انا الكبير انا اللي ما احد قدي خلك ساكت احسن

    لكن فعلأ ناس ما تستاهل تعطيها وجه .

    خف علينا يا اذكى مخلوق بالكون

    ههههههههههههههههههههههههههه

    +

    انت وش دخلك ياخي اسوي اللي اسويه حتى تدخل بحياتي ههههههههه

    +

    لا ابموووت ارحموووني انننييي لا استاهللووو يعطيني وجهووون

  6. getPickupRespawnInterval --Returns the time it takes before a pickup respawns after a player picked it up. The time is specified in milliseconds. 
    + 
    setPickupRespawnInterval -- Sets the time it takes for a pickup to respawn after a player picked it up. 
    

    الرجاء كتابة معلومات عن الوظيفة وفائدتها بالعربي؛ لأن هذا القسم العربي وأغلب الاعضاء مايعرفون انجليزي

    +

    بإمكان اي شخص وضع اي وظيفة ونسخها من الويكي وهو مهو عارف وش تسوي اصلا

    لذلك يجب شرحها بالعربي

×
×
  • Create New...