07.12.2010, 06:33
(
Последний раз редактировалось JamesC; 30.12.2010 в 00:31.
Причина: Title bug :(
)
Information
I was pretty bored today and came across a calculator script which could only do basic operations. With a bit of research and some fumbling with the HTTP function and ******'s advanced search tools/built-in calculator, I have created this script. You can do all the basic calculations; adding; subtracting; multiplying; dividing and also (complex) equations via ******, retrieving the result from ******. Since I am no mathematical expert, I haven't fully tested the script with equations, please post here if there are any bugs.
Usage
New in version 2
Version 2 also notifies the user of any errors that may have occurred while calculating.
Examples
Credits
****** - Doing all the hard work that they do.
Zeex - ZCMD
Calgon - Help with HTTP + Moral support + Script name.
Westie - Explode and str_replace
****** - Sscanf
Download
Version 2 (Current)
Pastebin (Source)
Solidfiles (AMX)
Version 1
Pastebin (Source)
Solidfiles (AMX)
I was pretty bored today and came across a calculator script which could only do basic operations. With a bit of research and some fumbling with the HTTP function and ******'s advanced search tools/built-in calculator, I have created this script. You can do all the basic calculations; adding; subtracting; multiplying; dividing and also (complex) equations via ******, retrieving the result from ******. Since I am no mathematical expert, I haven't fully tested the script with equations, please post here if there are any bugs.
Usage
pawn Код:
/calculate [Equation]
Examples:
/calculate 10 + 5
/calculate (10 + 5) ^ 2
/calculate (10 + 5) * (80 / 10) ^ 2
pawn Код:
/convert [Amount] [From] [To]
Examples:
/convert 100 USD NZD
/convert 100 ms s
/convert 30 days months
/convert 10 cm inches
/convert 1000 GB MB
And many more!
Examples
Код:
/calculate 100 / 0 = Numerical Error /convert 100 USD COD = Unknown Unit /convert 100 USD inches = Unit mismatch
****** - Doing all the hard work that they do.
Zeex - ZCMD
Calgon - Help with HTTP + Moral support + Script name.
Westie - Explode and str_replace
****** - Sscanf
Download
Version 2 (Current)
Pastebin (Source)
Solidfiles (AMX)
Version 1
Pastebin (Source)
Solidfiles (AMX)