Raised This Month: $ Target: $400
 0% 

Whats the difference between ++ and +=


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-10-2010 , 09:50   Whats the difference between ++ and +=
Reply With Quote #1

When adding to a variable, what is the difference between:

Variable[id]++

and

Variable[id]+=

I believe ++ adds 1 automatically each time, but += allows you to define how much to add each time, correct?
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
 


Thread Tools
Display Modes

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 21:52.


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