Raised This Month: $ Target: $400
 0% 

easy way ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.Waffle
Senior Member
Join Date: Dec 2011
Old 12-23-2012 , 19:05   easy way ?
Reply With Quote #1

hello,
there is a better/easy way how to Compare them to 0?
PHP Code:
        Ver] = 0
        Ver
] = 0
        Ver
] = 0
        Ver
] = 0
        Ver
] = 0
        Ver
] = 0
        Ver
] = 0
        Ver
] = 0
        Ver
] = 0
        Ver
10 ] = 0
        Ver
11 ] = 0
        Ver
12 ] = 0
        Ver
13 ] = 0
        Ver
14 ] = 0
        Ver
15 ] = 0
        Ver
16 ] = 0
        Ver
17 ] = 0
        Ver
18 ] = 0
        Ver
19 ] = 0
        Ver
20 ] = 
thanks.
Mr.Waffle is offline
victorngl
Member
Join Date: Feb 2011
Old 12-23-2012 , 19:16   Re: easy way ?
Reply With Quote #2

PHP Code:
for( new 0sizeofVer ); i++)
        
Ver] = 

Last edited by victorngl; 12-23-2012 at 19:16.
victorngl is offline
Send a message via MSN to victorngl Send a message via Skype™ to victorngl
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-23-2012 , 19:23   Re: easy way ?
Reply With Quote #3

Code:
arrayset(Ver, 0, sizeof Ver);
hleV is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-23-2012 , 20:33   Re: easy way ?
Reply With Quote #4

You aren't comparing anything . . .
__________________
fysiks is offline
Mr.Waffle
Senior Member
Join Date: Dec 2011
Old 12-24-2012 , 00:35   Re: easy way ?
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
You aren't comparing anything . . .
o.O ofc im . im comparing them to zero .
after i changed there Value.
Mr.Waffle is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-24-2012 , 01:21   Re: easy way ?
Reply With Quote #6

Quote:
Originally Posted by Mr.Waffle View Post
o.O ofc im . im comparing them to zero .
after i changed there Value.
No, you are assigning them to zero. There is no comparing in your code above. If you did in fact mean "assign" then hleV has given you the best answer.
__________________

Last edited by fysiks; 12-24-2012 at 01:23.
fysiks 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 13:43.


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