Jump to content
MakeWebGames

POG1

Members
  • Posts

    1,419
  • Joined

  • Last visited

Everything posted by POG1

  1. Re: [mccode] Buy A House With Level Requirements !   The answer is to use TINYINT right? A signed TINYINT can go from -127 to +127 which is more than enough needed. If i am correct the number in brackets (e.g INT(11)) or "display width" is for returning the value, therefore the display width wouldn't restrict data held in the field.
  2. Re: Opacity in IE Browser's Here is the opacity for webkit.. -moz-opacity:0.5;
  3. Re: [Any Mccodes] Mailbox UPDATE! That is a lot of code for something so simple and if you want to change the color for the whole site it takes 2 seconds. Here is how i do it.. Before the loop create a variable; $currentRow = 0; In the loop change the variable.. $currentRow = 1 - $currentRow; Then for the markup; <tr class="row'.$currentRow.'">... Add these classes to the CSS section in your site. tr.row1 td {background:#ccc} tr.row0 td{background:#aaa;} tr.row1 td:hover, tr.row0 td:hover {background:#fff;} /* additional */
  4. Re: *special* McCodes v3 BETA Release u got a demo?
  5. Re: [MCcode v2] Shops item stock - as requested (Not Tested) It seems your getting too big for your boots zero! I was trying to explain in simple words. My explanation was good enough because thats what the function does!
  6. Re: Opacity in IE Browser's what about webkit?
  7. Re: <li> in Internet Explorer.   Thats kinda defeating the object of using lists for menus.
  8. Re: Basic XHTML/CSS Framework These are very useful and i have created a few "blanks" so it is faster that writing a lot of lines from scratch. Many people here are yet to learn CSS and table less layouts so this would help to show how its done.
  9. Re: [MCcode v2] Shops item stock - as requested (Not Tested)     Its an if else function; ( condition ) ? 'true' : 'false' ; So the condition first checks if the GET['ID'] is set, then it checks if the value of GET['ID'] is numerical.
  10. Re: [mccode v2] Preferences   Kyle ... how long have you been coding? show me a simple sprintf command using alpha digit and decimal's echo would be acceptable but printf would also be acceptable... i have been coding for just over 7 months... im sure you have been for about 2.5 - 3.5 years   pog1 consider the repercussions of your actions before prompting a idiotic opinion covering your immaturity with idiotic jokes does not shield you from what you really are would either of you like to borrow a dictionary? or maybe a php manual... just so there is no hard feelings + 1 for both of you although neither of you deserve it. EDITED: Kyle did need a manual lol I think you need to chill out a bit. You think you're pro! Your head is a bit too big for my liking.
  11. Re: Referal in HOF   print "$refwin"; its still gona be the same lol You need.. $refwin = mysql_num_rows(mysql_query("SELECT * FROM referals WHERE refREFER={$r['userid']}")); Lol, I didn't take a look at the code, and assumed he had it right, just glanced at the echo and noticed the single quotes :P But in that case your still gonna try and print a query, not really gonna work.
  12. Re: Code for capped EXP? $expFromAttacking <-- this is set in the attack script somewhere, cant remember the name. $maxExp = $ir['exp_needed'] * 0.75; $expFromAttacking = ($expFromAttacking > $maxExp) ? $maxExp : $expFromAttacking;   something like that i think
  13. Re: Referal in HOF   print "$refwin"; its still gona be the same lol You need.. $refwin = mysql_num_rows(mysql_query("SELECT * FROM referals WHERE refREFER={$r['userid']}"));
  14. Re: Prob with max stats think about it... Whats the difference between a integer and decimal? If you don't know it would be wise to learn.
  15. Re: McCodes - Banners for 3 Pounds - PAYPAL ONLY Yellow outer glow is ghastly! Cant any body change it from the default?
  16. Re: Prob with max stats   65 lol
  17. POG1

    How to use sprintf?

    Re: How to use sprintf?   It's just good practice to space coding. But there are some people who have some wild spacing in their mods, sometimes less is more...
  18. Re: Code for capped EXP? change the leveling algorithm then.
  19. Re: McCodes - Banners for 3 Pounds - PAYPAL ONLY only save as PNG is you have to. PNG = very large file size. GIF = low file size (but less colors) :-D
  20. Re: Prob with max stats it seems like the field value is limited to 7 place values, change it to 8.
  21. Re: New banner I like the silhouette character, although it is a bit pixilated on the edges.
  22. Re: [mccode v2] Annoucements Upgrade! Why do a simple queries take 6 or 7 lines?
  23. POG1

    How to use sprintf?

    Re: How to use sprintf?   What do you mean "less space". Instead of running 1 extra function you are declaring and assigning 2 additional variables..
  24. POG1

    Include or Require?

    Re: Include or Require?   What would the full path be? /usr/share/blah/blah.... globals.php is in the same directory as the file viewed,therefore there is no need for any extra functions
  25. POG1

    Include or Require?

    Re: Include or Require?   Very interesting i never knew this i have only every simply used, include "file.extension"; or require "file.extension"; Although i prefer to use the require, but now with this new information i'm going to edit my codes to require with the full path. whats the full path then? /? just use a relative file path, it will work just fine
×
×
  • Create New...