Related to math - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Related to math (
/showthread.php?tid=443288)
Related to math -
Tanush123 - 11.06.2013
if i do
pawn Код:
GivePlayerMoney(playerid,-OrgInfo[PlayerData[playerid][Member]][Wepammo]-10000*10);
Will it do
1. OrgInfo[PlayerData[playerid][Member]][Wepammo]
2. -10000
3. *10
Or bedmas which is Multiplication first?
AW: Related to math -
HurtLocker - 11.06.2013
This will do: -OrgInfo[PlayerData[playerid][Member]][Wepammo]-100000
To get the result you want do this: (-OrgInfo[PlayerData[playerid][Member]][Wepammo]-10000)*10
Re: Related to math -
Swyft™ - 11.06.2013
BEDMAS is a Canadian Version of these expressions
Brackets
Exponents
Division
Multiplication
Addition
Subtraction