[TUT REQUEST] Floats -
Kwarde - 10.01.2011
Hi everyone.
I know alot of SA:MP scripting, except the FLOAT FUNCTIONS. I'm not good at math, and there ain't an clear explaination at samp wiki.
So my question is: Can anyone explain me this?

- I don't understand it :P (except a few... floatstr, float, floatcmp, floatdiv).
Thanks in advance.
Regards,
Kevin
Re: [TUT REQUEST] Floats -
JaTochNietDan - 10.01.2011
I don't know what you mean, what's so hard to understand about float functions? Floats are just a number with a very accurate decimal position. They are allocated more memory in the RAM also, so it can store all of these extra numbers. So what float functions are you talking about? What do you want to know exactly?
Re: [TUT REQUEST] Floats -
Kwarde - 10.01.2011
Well, I need it all :P - Some are not on samp wiki.
Without the knowledge I can't make things I want.. For example, my own speed-o-meter (kmp)

Thanks for your response by the way.
Regards,
Kevin
Re: [TUT REQUEST] Floats -
Vi3t102 - 10.01.2011
Im Good At Math
But Don't Know Scripting
Not Trying Too Much Text
AW: [TUT REQUEST] Floats -
Kmitska - 10.01.2011
You can use the Float command if your nuber has a ","

like: 1,1
(bad description i know xD)
Re: [TUT REQUEST] Floats -
Retardedwolf - 10.01.2011
Does
this help you by any bit?
Re: [TUT REQUEST] Floats -
Kwarde - 10.01.2011
@Kmitsa:
Thanks but I know that. I think you mean the "new Float

tring;". ? - I know that for sure! I mean the functions.
But thanks for your response.
@Vi3t102:
I'm not good at math. That's a 2nd problem. But if I understand the functions more, I think I can do SOMETHING.
And to the rest:
I'm gonna sleep. So I won't response anymore.
And thanks in advance again, and everyone thanks for the responses.
Regards,
Kevin (Kwarde)
Re: [TUT REQUEST] Floats -
admantis - 10.01.2011
Quote:
Originally Posted by Kwarde
Well, I need it all :P - Some are not on samp wiki.
Without the knowledge I can't make things I want.. For example, my own speed-o-meter (kmp) 
Thanks for your response by the way.
Regards,
Kevin
|
Kilometers per hours is an integer (a natural number like 500 or -200 or 1000 w/e), not a float. Floats are mostly used for positions, angles, health, armor. There are very little uses besides that.
Re: [TUT REQUEST] Floats -
Outcast - 10.01.2011
Can't you make a speed-o-meter with GetVehicleVelocity?
Re: AW: [TUT REQUEST] Floats -
mamorunl - 10.01.2011
Quote:
Originally Posted by Kmitska
You can use the Float command if your nuber has a ","  like: 1,1
(bad description i know xD)
|
Most scripting/programming languages use the american notiation: the dot (.). So your float would become: 1.1
Float is actually an acronym for Floating Point and is, like Kmitska said, just a floating number.
Now, if there are undocumented functions on the wiki and you want to know how they work. Post the functions here or search the forum for the usages : >
Hope I helped you,