Raised This Month: $ Target: $400
 0% 

ROUNDXP /= 3 return 0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-09-2007 , 02:08   ROUNDXP /= 3 return 0
Reply With Quote #1

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.
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry is offline
travo
Senior Member
Join Date: Aug 2006
Old 11-09-2007 , 02:25   Re: ROUNDXP /= 3 return 0
Reply With Quote #2

/= divides

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

travo is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-09-2007 , 02:31   Re: ROUNDXP /= 3 return 0
Reply With Quote #3

ROUNDXP /= 3 is the same as ROUNDXP = ROUNDXP / 3

and

ROUNDXP = 3 is just assigning ROUNDXP the value of 3.
hlstriker is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-09-2007 , 05:13   Re: ROUNDXP /= 3 return 0
Reply With Quote #4

Quote:
Originally Posted by travo View Post
99 / 3
= 11
ConnorMcLeod is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-09-2007 , 07:47   Re: ROUNDXP /= 3 return 0
Reply With Quote #5

Quote:
Originally Posted by travo View Post
/= divides

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

WHOA, that's the new maths ?! o_O
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-09-2007 , 02:52   Re: ROUNDXP /= 3 return 0
Reply With Quote #6

Thanks for clearing that out!
I love this forum... You answer so fast! ;D
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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