AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ROUNDXP /= 3 return 0 (https://forums.alliedmods.net/showthread.php?t=62985)

BigDontCry 11-09-2007 02:08

ROUNDXP /= 3 return 0
 
Hi everyone.

Whats the difference between
PHP Code:

ROUNDXP /= 

and
PHP Code:

ROUNDXP 

When I look at the UWC3 sourcecode they use the first example there, but when I try that one it just return 0.

travo 11-09-2007 02:25

Re: ROUNDXP /= 3 return 0
 
/= divides

so if ROUNDSXP = 99
ROUNDXP /= 3
= 99 / 3
= 11


hlstriker 11-09-2007 02:31

Re: ROUNDXP /= 3 return 0
 
ROUNDXP /= 3 is the same as ROUNDXP = ROUNDXP / 3

and

ROUNDXP = 3 is just assigning ROUNDXP the value of 3.

BigDontCry 11-09-2007 02:52

Re: ROUNDXP /= 3 return 0
 
Thanks for clearing that out!
I love this forum... You answer so fast! ;D

ConnorMcLeod 11-09-2007 05:13

Re: ROUNDXP /= 3 return 0
 
Quote:

Originally Posted by travo (Post 551030)
99 / 3
= 11

:nono:

Alka 11-09-2007 07:47

Re: ROUNDXP /= 3 return 0
 
Quote:

Originally Posted by travo (Post 551030)
/= divides

so if ROUNDSXP = 99
ROUNDXP /= 3
= 99 / 3
= 11


WHOA, that's the new maths ?! o_O


All times are GMT -4. The time now is 01:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.