• Welcome to Vice City Multiplayer.
 

Approximation

Started by Skirmant, January 20, 2010, 04:41:21 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Kirke

#15
oh mate, thats bad.

you cannot lead people to believe that you must have vcmp. as part of the alias name.

Do you know how silly that sounds ?

kind regards

Accepted Solution:


alias SetWholeNumber !return $iif($gettok($1,2,46) >= 5,$ceil($1),$floor($1))

Kirke

no offense intended Skirmant, but your an idiot!


the alias name is irreverent, as long as you don't have any conflicting names,

unless you apply the -l switch which stands for "local alias".

it makes NO difference to the result if the alias is vcmp.blah or just blah

Skirmant

Quote from: Kirke on January 20, 2010, 06:46:24 PM
no offense intended Skirmant, but your an idiot!

You had to piss me off did you?
Here's the ultimate proof

http://www.youtube.com/watch?v=VJySqFjobyA

The video may not be finished processing, but by doing full screen you can see it.
I wish that you would take those words back :)
I know advance mIRC, average C++, basic Pawn & Squirrel, very basic Java Script.

Kirke

#18
ok, yea, sorry for pissing you off. but my way is right.

lets look at this from another angle.

why do you think the alias name should be prefixed with vcmp.  ?

can you check you have no other alias names with SetWholeNumber for me.

PS. your way is right too, btw.

Im just interested why its returning 8 when a value of 4.5 is passed to it. as its only returning $celi or $floor of 4.5

Skirmant

I pretty much searched everywhere there doesn't seem to be another one.
And I have no idea why it works with vcmp. attached to it. Infact it works with anything attached to it.
I know advance mIRC, average C++, basic Pawn & Squirrel, very basic Java Script.

Kirke

well, as long as i know the calculation works, the alias name seem to be the problem (im putting that down to a conflicting name in your script)