Raised This Month: $ Target: $400
 0% 

Code syntax to reset variables to zero?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TinCan
Junior Member
Join Date: Nov 2007
Old 10-22-2009 , 14:28   Code syntax to reset variables to zero?
Reply With Quote #1

Trying to solve a bug in a plugin someone else made and wonder, does this one line of code set g_votes[0], g_votes[1] and g_votes[2] to zero?
g_votes[0] = g_votes[1] = g_votes[2] = 0;

Or do you have to do it like:
g_votes[0] = 0;
g_votes[1] = 0;
g_votes[2] = 0;
TinCan is offline
 



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 17:40.


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