Feky Posted June 21, 2009 Posted June 21, 2009 does anyone know how to put this so the investment bank is visible to lvls 5 and above. I tried but its not visible to any lvls above 5. . if($ir['level'] == '5') { print "<a href = 'investment.php' />Investments</a>"; } Quote
Dominion Posted June 21, 2009 Posted June 21, 2009 Re: Visability == means equal to eg what u have == 5 only level 5 can see > smaller numbers this side eg > 5 smaller then 5 could see < bigger numbers this side < 5 bigger then 5 can see <= equal or bigger <= 5 + bigger can see >= equal or smaller >= smaller then 5 and the 5s can see so u want <4 or =<5 Quote
shrek1609 Posted June 21, 2009 Posted June 21, 2009 Re: Visability == means equal to eg what u have == 5 only level 5 can see > smaller numbers this side eg > 5 smaller then 5 could see < bigger numbers this side < 5 bigger then 5 can see <= equal or bigger <= 5 + bigger can see >= equal or smaller >= smaller then 5 and the 5s can see so u want <4 or =<5 you've got this the wrong way round mate... >4 means anyone level 5 or over can see <4 means only levels 1,2 and 3 will be able to see it Quote
Feky Posted June 21, 2009 Author Posted June 21, 2009 Re: Visability so if i want people higher lvl then 5 to view it it would b like this if($ir['level'] <= '5') { print "<a href = 'bank.php' />bank</a>"; } Quote
Haunted Dawg Posted June 21, 2009 Posted June 21, 2009 Re: Visability more like.. if($ir['level'] >= 5) { echo 'Bank'; }[php] *me thinks Quote
Feky Posted June 21, 2009 Author Posted June 21, 2009 Re: Visability works perfect lol ur one of the most helpful people on these forums lol +2 Quote
SouIAssassin Posted June 21, 2009 Posted June 21, 2009 Re: Visability if($ir['level'] > 4) { echo 'Bank'; } means lvls above 4 will see it Quote
Haunted Dawg Posted June 21, 2009 Posted June 21, 2009 Re: Visability Mine is >= because it's above or equal. Quote
EpicFuse Posted June 21, 2009 Posted June 21, 2009 Re: Visability oh um hey were did you get the investment bank mod? Quote
Feky Posted June 21, 2009 Author Posted June 21, 2009 Re: Visability http://criminalexistence.com/ceforums/index.php?topic=25678.msg109043;topicseen#msg109043 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.