how much greater is this float
#1

Okay just a question

Here i can do 'something' if the last float is greater then the first.
pawn Код:
if(floatcmp(fr[2],col[2])== -1)
{
  SendClientMessage(playerid,-1,"GREAT HUH?");
}
But how would i script it if i want to check that col[2] is just a bit greater ( so i could add my own number to it)?
i mean col[2] is greater yes but what if i want to return only if its greater than 1.6 or something ?

I hope you understood what i meant. i find it difficult to explain.
Reply
#2

Just use col[2] > fr[2]
Reply
#3

i want to check if fr[2] is 1.6 greater than col[2]
Reply
#4

Quote:
Originally Posted by AIped
Посмотреть сообщение
i want to check if fr[2] is 1.6 greater than col[2]
Look:

Код:
if(fr[2]-col[2] > 1.6)
Greekz
Reply
#5

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Look:

Код:
if(fr[2]-col[2] > 1.6)
Greekz
Ah yes ofcourse thanks
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)