A little bit help with '?'
PHP Code:
if points < or = than 0 shows Points [%d] (why %d don't converts to Points[id]?) Who can fix this? |
Re: A little bit help with '?'
PHP Code:
>> (!Points[id]) Always return true if the points its equal or < 0 :) Remember: PHP Code:
|
Re: A little bit help with '?'
PHP Code:
|
Re: A little bit help with '?'
you can use if and else instead of this:
Code:
if( Points[ id ] < 1 ) |
Re: A little bit help with '?'
Quote:
|
Re: A little bit help with '?'
If you want to make sure you don't print negative values (shouldn't happen with a decent code...), use max(0, Points[id]) as last argument.
|
Re: A little bit help with '?'
Quote:
PHP Code:
|
Re: A little bit help with '?'
Omg, its in case of '?' condition...
Like PHP Code:
|
| All times are GMT -4. The time now is 16:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.