Jump to content
MakeWebGames

skinny

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

skinny's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: HOF-- User level Colours Still need help on this :(
  2. Re: HOF-- User level Colours   Ok i did that and it works but still back to the first post
  3. Re: HOF-- User level Colours :-( Also is there a way to make it so Level opens up straight away as you click Hall of fame?
  4. Re: HOF-- User level Colours   Yes if($r['user_level'] == 1) { $userl="Mobster"; } else if($r['user_level'] == 2) { $userl="Owner"; } else if ($r['user_level'] == 3) { $userl="Admin"; } else if($r['user_level'] == 0) { $userl="NPC"; } else if($r['user_level'] == 5) { $userl="Moderator"; } else {$userl="Faker"; }
  5. Re: HOF-- User level Colours it didnt work :|
  6. At the moment i have it so that Admins are red, Donators are yellow and non donators gray But i would like to add into it a colour for mods---blue When i just add this {if($r['user_level'] ==5){ $r['username'] = "<a title='Moderator' href='viewuser.php?u={$r['userid']}'><font color=blue>{$r['username']}</font>";} before the first user level if statement it doesnt show the HOF no more Is there an easier way/ or a way to make it so i can have seperate colours for mods Any help is greatly appreciated Thanks :-)   This is the functioning code function hof_level() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest levels <table width=75% cellspacing=1 class='table2'><tr style='background:gray'> <th>Pos</th> <th>User</th> <th>Level</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY level DESC,userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { if($r['user_level'] ==2){ $r['username'] = "<a title='Admin' href='viewuser.php?u={$r['userid']}'><font color=red>{$r['username']}</font>";} {$d=""; if($r['donatordays']) { $r['username'] = "[url='viewuser.php?u={$r[']<font color='yellow'>[b]{$r['username']}[/b][/url][/b]</font>"; } } $p++; if($r['userid'] == $userid) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>[url='viewuser.php?u={$r[']<a href='gangs.php?action=view&ID={$r['gang']}'>[b][{$r['gangPREF']}][/b][/url][url='viewuser.php?u={$r[']&nbsp<font color='gray'>[b]{$r['username']}[/b][/url]</td><td>$t{$r['level']}$et</td> </tr>"; } print "</table>"; }
  7. Re: Nerve Refill for crystal temple Sorted now i missed a "b" from the brave refill and you missed out a "max" from $ir['maxbrave']) but you editted it in Thanx :D
  8. Re: Nerve Refill for crystal temple thats what i done but it said nerve/brave already full even with yours :|
  9. Re: Nerve Refill for crystal temple yes i know but i would like one refill for energy and one for nerve but when i add nerve into it it doesnt work properly
  10. One last thing :lol: i looked at the coding for energy refill edited it to all nerve refiil but it just says its full when its not :oops: please help Bit basic but here it is lol What would you like to spend your points on? [url='crystaltemple.php?spend=refill']Energy Refill - {$set['ct_refillprice']} points[/url] [url='crystaltemple.php?spend=money']Money - \$".number_format($set['ct_moneypercrys'])." per point[/url] "; } else { if($_GET['spend'] == 'refill') { if($ir['crystals'] <$set['ct_refillprice']) { print "You don't have enough points!"; } else if($ir['energy'] == $ir['maxenergy']) { print "You already have full Energy."; } else { $db->query("UPDATE users SET energy=maxenergy,crystals=crystals-{$set['ct_refillprice']} WHERE userid=$userid"); print "You have paid {$set['ct_refillprice']}points to refill your Energy bar."; } } else if($_GET['spend'] == 'IQ') { print "Type in the amount of crystals you want to swap for IQ. You have [b]{$ir['crystals']}[/b] crystals. One crystal = {$set['ct_iqpercrys']} IQ.<form action='crystaltemple.php?spend=IQ2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough points or did not fill out the form. [url='crystaltemple.php?spend=IQ']Back[/url]"; } else { $iqgain=$_POST['crystals']*$set['ct_iqpercrys']; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']} WHERE userid=$userid"); $db->query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid"); print "You traded {$_POST['crystals']} crystals for $iqgain IQ."; } } else if($_GET['spend'] == 'money') { print "Type in the amount of points you want to swap for money. You have [b]{$ir['crystals']}[/b] points. One crystal = \$".number_format($set['ct_moneypercrys']).".<form action='crystaltemple.php?spend=money2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough points or did not fill out the form. [url='crystaltemple.php?spend=money']Back[/url]"; } else { $iqgain=$_POST['crystals']*$set['ct_moneypercrys']; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']},money=money+$iqgain WHERE userid=$userid"); print "You traded {$_POST['crystals']} points for \$".number_format($iqgain)."."; } } } $h->endpage(); ?>
  11. Re: [mccode] Cityname in Mainmenu :cry: i seem so stupid now
  12. Re: Change Explore to City Name... :lol: thats great man it works that seemed so easy :lol:
  13. Re: Change Explore to City Name...   OK cool ill try it :-D thanx
  14. Re: Change Explore to City Name... i mean in the mainmenu Explore on some other games it says the city name you are in rather than explore
  15. is it possible to do this? :? im guessing that there needs to be seperate files for each city name   Please help :-D
×
×
  • Create New...