SA-MP Forums Archive
[FilterScript] Romel's Calculator [Simple and Easy!] - No more using calculator - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Romel's Calculator [Simple and Easy!] - No more using calculator (/showthread.php?tid=371722)



Romel's Calculator [Simple and Easy!] - No more using calculator - JaKe Elite - 24.08.2012

Romel's Calculator [Simple and Easy] - No more using calculator

built and script by Romel


I'm bored once again. I was planning to make a calculator for my server.
so i can use it to answer Math Quiz easily. So i made this calculator script.
It just took me 3 minutes to script it.
The calculator is pretty simple, can be use with /calculate with different types.

Type 1, Addition, Type 2, Subtraction, Type 3, Multiplication.

Have fun using this script.

How to use it?:

1.) Type /calculate (type) (num1) (num2), here is example (/calculate 1 5 2)
2.) After typing, wait for 2 seconds to get the answer
3.) Done, the answer is displayed for my example the answer is '7'

Easy isn't it?.

Commands:

/calculate

-----

/calculate - there is 3 parameters on it, one is type, two is num1, and three is num2.
type - the operation you will use available is Addition, Multiplication and Subtraction.
Num1 - this is the primary number will be going to use in the operation
Num2 - this is the secondary number will be going to use in the operation
Answer - this is the answer. Product/Sum/Difference.

Credits:

******
Zeex
Romel

Downloadlink:

Here is the following downloadlink:

rCalculator [Simple and Easy!] v1.0

Updates:

I'm current updating for v1.1 which will be more realistic which i'm going to use textdraw.
I'm going to try if i can add the type Division. That is if SA-MP supports on it.


Re: Romel's Calculator [Simple and Easy!] - No more using calculator - StupidGuyLikeMe - 24.08.2012

What happen if I typed /calculator 3 99 99? Jokes, nice filter-script.


Re: Romel's Calculator [Simple and Easy!] - No more using calculator - JaKe Elite - 24.08.2012

The answer will be 9801. anyway thanks.


Re: Romel's Calculator [Simple and Easy!] - No more using calculator - Team_PRO - 24.08.2012

Useful XD i use it for Server with math quiz


Re: Romel's Calculator [Simple and Easy!] - No more using calculator - JaKe Elite - 24.08.2012

Seriously this is easy to script you have just to use this

pawn Code:
GlobalAns = GlobalVar1 + GlobalVar2; //GlobalAns define as the answer of GlobalVar1 and GlobalVar2 in Addition
GlobalAns = GlobalVar1 - GlobalVar2; //GlobalAns define as the answer of GlobalVar1 and GlobalVar2 in Subtraction
GlobalAns = GlobalVar1 * GlobalVar2; //GlobalAns define as the answer of GlobalVar1 and GlobalVar2 in Multiplication
anyway Thank you.


Re: Romel's Calculator [Simple and Easy!] - No more using calculator - Lordzy - 24.08.2012

Nice work,but I wont use it.


Re: Romel's Calculator [Simple and Easy!] - No more using calculator - JaKe Elite - 24.08.2012

Thank you


Re: Romel's Calculator [Simple and Easy!] - No more using calculator - DarkB0y - 24.08.2012

Great job Romel


Re: Romel's Calculator [Simple and Easy!] - No more using calculator - JaKe Elite - 24.08.2012

Thank you.


Re: Romel's Calculator [Simple and Easy!] - No more using calculator - Windrush - 26.08.2012

Good Job