[FilterScript] 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] Calculator (
/showthread.php?tid=587787)
Calculator -
FanHamMer - 02.09.2015
Basic calculator, not unique.
The script was written a 2 year ago.
Video [ame]www.youtube.com/watch?v=xkLe89NRzGs[/ame]
Video on Russian, but script on English. It's for you.
Pastebin:
http://pastebin.com/rYRGz9AQ
Author: FanHamMer(it's me)
Re: Calculator -
Freezo - 02.09.2015
- Well done.
- Why do you try to include something that all user has it ( i'm talking about #tryinclude )
- this can be merged in one, because it does return the same value.
Код:
if !response *then return true;
if !strlen(inputtext) *then return true;
- Someplace you use binary(+0b10 ) and in some you use hex, keep with one for readability.
- static a, b, c; must be new ( i guess ).
- Here in this code, is there any reason for checking the length and adding true + == 0 ? its default the true & the == 0
Код:
if (strcmp("/calc", cmdtext, true, 10) == 0)
- Good job.
Re: Calculator -
kaban4ik - 02.09.2015
goooooood
Re: Calculator -
FanHamMer - 02.09.2015
This is a very old code.
I don't optimize it.
I do not write more on PAWN.
Thank you for rating.
Re: Calculator -
Freezo - 02.09.2015
Then why should you share it, if you can't do a support or just fix some small things?
Re: Calculator -
FanHamMer - 02.09.2015
Quote:
Originally Posted by Freezo
Then why should you share it, if you can't do a support or just fix some small things?
|
Why not? It works? Working.
You want something to improve? I not interfere.
If PAWN dead language, I do not have to write on it.
Personally, my opinion
More answers on this subject, will not be.
Re: Calculator -
Michael B - 02.09.2015
Quote:
Originally Posted by Freezo
Then why should you share it, if you can't do a support or just fix some small things?
|
I guess for others, to continue his work. It's a simple but useful filterscript anyway.
Re: Calculator -
kaban4ik - 02.09.2015
Quote:
Originally Posted by Freezo
Then why should you share it, if you can't do a support or just fix some small things?
|
Because Gladiolus...
Re: Calculator -
FanHamMer - 02.09.2015
Quote:
Originally Posted by Michael B
I guess for others, to continue his work. It's a simple but useful filterscript anyway.
|
You're right. I posted it's for other people, like my example code.
Re: Calculator -
Freezo - 02.09.2015
Quote:
Originally Posted by FanHamMer
Why not? It works? Working.
You want something to improve? I not interfere.
If PAWN dead language, I do not have to write on it.
Personally, my opinion
More answers on this subject, will not be.
|
Since other games that use pawn isn't dead, pawn still alive ^^'.
Re: Calculator -
Crayder - 02.09.2015
No. PAWN is not dead. In fact, people continue to use it each day and i's becoming more popular worldwide.
One example I like is
Pleo the dinosaur. It uses PAWN to control every bit of it's robotics.
Re: Calculator -
Mariciuc223 - 03.09.2015
Quote:
Originally Posted by Freezo
Since other games that use pawn isn't dead, pawn still alive ^^'.
|
Yes, amxmodx use it, samp use it, Mokoi Gaming use it, Open Legends use it, amxmod (without X) use it, adminmod use it, Amxbot use it and other. So that's not a dead lang
Re: Calculator -
Freezo - 03.09.2015
Quote:
Originally Posted by Mariciuc223
Yes, amxmodx use it, samp use it, Mokoi Gaming use it, Open Legends use it, amxmod (without X) use it, adminmod use it, Amxbot use it and other. So that's not a dead lang 
|
Amxmodx & Sourcemod(A lot of games included there TFC CS:GO..) & Samp they are the only one active.