Getting the size difference between 2 functions
#1

So, Simple question here, dont know if the awnser is simple tho..

How do I get the difference between A and B

Example:

A[playerid] = 501
B[playerid] = variable but at this moment 721

How do I get the difference between A and B?
Reply
#2

What do you mean?
B[playerid]-A[playerid]?
if(B[playerid] > A[playerid])?
if(B[playerid] != A[playerid])?
What do you mean by difference?
Reply
#3

Код:
Difference = abs(A[playerid] - B[playerid]);
Reply
#4

I want to show the player the difference between Number a and number b

Other example:

money1[playerid]
money2[i]

money1 is the player his money
money2 is the money of the player that is called in the command.

I want to show the difference between their money
Reply
#5

Quote:
Originally Posted by milanosie
Посмотреть сообщение
I want to show the player the difference between Number a and number b

Other example:

money1[playerid]
money2[i]

money1 is the player his money
money2 is the money of the player that is called in the command.

I want to show the difference between their money
Then in that case, like RyDer said:
pawn Код:
new Difference = floatabs(money1[playerid] - money2[i]);
Reply
#6

Quote:
Originally Posted by RyDeR`
Посмотреть сообщение
Код:
Difference = abs(A[playerid] - B[playerid]);
hmm quiet easy-.-

did not think of that thanks
Reply


Forum Jump:


Users browsing this thread: