Jump to content
MakeWebGames

POG1

Members
  • Posts

    1,419
  • Joined

  • Last visited

Everything posted by POG1

  1. Re: Help with needing more than one item yes you do
  2. Re: [Mccodes V2] In-game template (first come, first serve) not bad :)
  3. Re: Help with needing more than one item you would want to use num rows to check if a result set is returned.
  4. Re: [V2] New Small Accuracy Mod [V2] You could add an accuracy bar.   echo '<div style="background:#900;height:5px;width:120px;padding:0">'. '<div style="background:#090;height:5px;width:'.(($ir['totalhits']) / ($ir['totalmisses']) * 100).'%;margin:0;padding:0;"> </div>'. '</div>';
  5. Re: [McCodes V2] Donator/regular User Bank Cap   Why would that make a difference all the values used are integers, floats are useless and take up more ram.
  6. Re: Mccodes Mono District Another shocking game I expect.
  7. Re: Help with needing more than one item It will store it as qty and not each individual row, thats why num rows isnt working. Try using the inv_qty   $itemid = X; $i = $db->query("SELECT * FROM inventory WHERE inv_itemid=$itemid AND inv_userid=$userid"); if(mysql_num_rows($i)) { $item = mysql_fetch_array($i,MYSQL_ASSOC); if($item['inv_qty'] < 2) { print "<h2>Sorry</h2>You don't have any $%#$"; $h->endpage(); exit; } }
  8. Re: [Mccodes V2]Emergency Surgery I have seen this mod before, where did u find it?
  9. Re: [McCodes V2] Unique Template's lists would be created using css, not graphics :s
  10. Re: [mccode v2] Lucky Boxes You could beef up the security of the code by checking if the GET variable is a number as well as isset on this line. if(isset($_GET['open']))   Also @ crazy-t's sig if you think about it logically then you are still posting mods ;)
  11. Re: Making a perfect demo account! I'm not so good with regex but you could just use something to split the page string up by any length of forward slashes.   $page = preg_split("+[/]",$_SERVER['SCRIPT_NAME']); if(in_array($page[0],array('/test.php','/example.php')) { echo 'get out!'; }   I haven't tested it and it probably won't work it is just an idea.
  12. Re: Fearless-Dojo chill out mate, i doubt you paid for your game engine (if you have 1)
  13. Re: looking for mods v2 "murt be a known coder" ay?
  14. Re: Fearless-Dojo   why is that?
  15. Re: PHP.net search bookmark   I have IE 8 on linux ;)
  16. Re: [MCcodes All] Staff Members cannot be attacked. why not just use ['user_level'] == 2
  17. Re: [mccode v2]Sniper Mod[$15] you may of corrected his spelling error but it still contained a grammatical error.
  18. Re: [mccode v2] Tag Mod (Complete) i don't quite understand what the mod does and i looked at the "secured" script and it is not much different. Why do i keep seeing is_string? it is pointless!   $_GET['spend'] = (isset($_GET['spend']) && is_string($_GET['spend']) ? strtolower(trim($_GET['spend'])) : "");   Use ctype_aplha, ctype_aplnum or ctype_digit
  19. Re: Auto ban mod [V2]   if($myIp == $storedIP) { $scale = array(1,2,4,8,16,32,64,128,256,512,1024); $timeInJail = $scale[++$ir['timesBanned']]; // Ban Query echo 'banned!'; }   More or less what you would need to work off
  20. Re: Error: This script requires an action. try staff_logs.php?action=maillogs
  21. Re: V2 crystal temple.. crazy t you want to use sprintf, it will get correct strings for queries..
  22. Re: check these out if your gonna complain then do it somewhere else.
  23. Re: [V2] Crystalbank Mod [V2]   look at this Magictallguy thinks hes so cool yet the version he secured doesnt even work right away oh lordy dude sit down and start suckin that thumb of urs instead of tryin to secure other peoples scripts and knock them the entire time my god people like you are the reason some newbies wont post on CE oh heres a error after taking messing with it abit to get to work Parse error: syntax error, unexpected T_STRING in /home/thugwar/public_html/crystalbank.php on line 118 look dude got that error after 10mins attemptin to make ur so called secured version to work i guess your not so great huh Magictallguy look at this folks he put it like so echo ("You ask to withdraw , ", number_format($gain), $s); echo ("the banking lady grudgingly hands it over. "); echo ("You now have %s crystal%s in the bank. ", number_format($ir['crystalbank']), $s); echo ("> Back"); which caused errors why you may ask well all the " ; he has in there are unneeded so it should of been echo (You ask to withdraw , , number_format($gain), $s) echo (the banking lady grudgingly hands it over. ); echo (You now have %s crystal%s in the bank. , number_format($ir['crystalbank']), $s) echo (> Back) heck i prolly could take the echos out aswell but eh i dont care he hasn't got a clue himself lol
  24. POG1

    first site

    Re: first site take this text="#00FFFF" bgcolor="#000000" link="#FFFF00" vlink="#FF0000" background="http://stereo.gsfc.nasa.gov/img/spaceweather/preview/tricompSW.jpg" out of the body opening tag because it will not pass xHTML validation. You will then need to go to your head section and add a style tag.. <style type="text/CSS"> body { color:#0ff; background:#000 url(http://stereo.gsfc.nasa.gov/img/spacewe ... compSW.jpg); } a{color:#ff0;}a:visited,a:hover{color:#f00;} </style> That should produce something like what you already had. The rule is that if you want to do any formatting do it in CSS, html is useless :) p.s you only need 1 opening body tag
  25. Re: +9999--99999999 ( Bug )   if(isset($_POST['ammount']) AND ctype_digit($_POST['ammount'])) { // let them do stuff } else { // show something else }   You will want to use validation and ensure that you only allow what you want to allow. Check the php manual for the ctype functions, ctype_digit and ctype_alnum are two very useful functions you should be getting to use.
×
×
  • Create New...