Jump to content

10%


Recommended Posts

Posted

سلام عليكم

كيف اقدر اخد 10% من الشي .

يعني مثلا لو معي فلوس . وابي لو كتبت كوماند ياخد 10% بالمية من الفلوس

يعني لو فلوسي 10 ياخد 1

كيف

local Money = getPlayerMoney(source)

local number = Money*90/100 

 

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted (edited)
45 minutes ago, Mr.Mostafa said:

سلام عليكم

كيف اقدر اخد 10% من الشي .

يعني مثلا لو معي فلوس . وابي لو كتبت كوماند ياخد 10% بالمية من الفلوس

يعني لو فلوسي 10 ياخد 1

كيف

local Money = getPlayerMoney(source)

local number = Money*90/100 

 

حسابات عاديه .. 

local money = getPlayerMoney(source)
local precent = 10 -- هنا حط النسبه المئويه
local moneyToTake = (precent*money)/100

 

و اذا تبي تعرف كيف تستخدمها , حولها لمعادله 

و تسوي معادله بمجهول واحد الي هو القيمه الي تباها و تحسب عادي  هيك يعني  : 

p_961dwh8o0.jpg

Edited by #َxLysandeR

Chillin' with some demons, satans and vamps

Posted
17 minutes ago, #َxLysandeR said:

local moneyToTake = (precent*money)/100

 

 

50 minutes ago, Mr.Mostafa said:

local number = Money*90/100 

 

يب نفس حقتي بس كنت ملخبط فيها

تسلم :) 

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted

وتقدر تسوي كذا بعد :
 

local money = getPlayerMoney(source)
local moneyToTake = money * 0.10

 

  • Like 3

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...