Jump to content
MakeWebGames

Djkanna

Members
  • Posts

    3,138
  • Joined

  • Last visited

  • Days Won

    36

Everything posted by Djkanna

  1. <?php //$stat = stat like energy? //$maxStat = stat like maxenergy? if ($stat == 0) { $perc = 0; } else if ($stat == $maxStat) { $perc = 100; } else { $perc = floor(($stat/$maxStat)*100); } ?> <!--Inline styles for ease of demonstration--> <div class="barEmpty" style="width:204px;"> <div class="barFill" style="width:<?php echo $perc; ?>%;"></div> </div>
  2. I swear I am talking to myself. if($lines = 1) { //all 3 match //if($slot[1] == $slot[2] && $slot[2] == $slot[3]) if($line1) { $won = 250; echo"You pull the arm wait for it to stop spinning and you win \$".number_format($won).""; $db->query(sprintf("UPDATE users SET money = money + %d WHERE (userid = %u)", $won, $userid)); } //2 in a line match elseif($line1a) { $won = 150; echo"You pull the arm wait for it to stop spinning and you win \$".number_format($won).""; $db->query(sprintf("UPDATE users SET money = money + %d WHERE (userid = %u)", $won, $userid)); } else { $won = 100; echo"You pull the arm wait for it to stop spinning and you lost \$".number_format($won).""; } } This will always execute [($lines = 1) ret:true], no matter what lines you select. Now the question remains, why bother even giving them the option to pick lines? <?php $var = 3443; if ($var = 1) { echo 'Var 1 passed'; } else if ($var = 2) { echo 'Var 2 passed'; } else { echo 'Var 3 passed'; } Example script. Output: Var 1 passed. Wait that's not right surely? Edit: Not to mention, you've got undefined constants in your script, well either that or you've missed the $ from a couple of variables. :)
  3. -msg2short-
  4. Pretty good, well done.
  5. Thanks for the link Zefiux, apparently my memory sucks. :P -Topic updated: Octarine's posts removed. & I plan on adding more at the weekend.
  6. Well since this thread is down the drain... See ya, Octarine & SRB, it's been fun while it lasted.
  7. Okay, glad you got it sorted pal.
  8. Oooh Octarine caused a little stir... Has your issue been fixed or? (I'm lost *easy to do*)
  9. Djkanna

    WebSpaceLand

    I probably shouldn't post on here but hey. If they're on servers located in Texas, why on earth are they (I'm presuming here) a company based in (or targeting customers in) the UK? Surely one would go for a DC located in the UK. If they're after American customers (makes sense to have their servers located in the US) they should then change the domain and at least make the primary currency dollars. Makes sense to me, not sure about anyone else. :|
  10. Excuse my lack of knowlege when it comes to Dubstep, Rave and such, but are you the creator of the (currently) 5 tracks on the channel?
  11. DaniWeb occasionally.
  12. The awful moment when Google gives you the 'Did you mean...' on translation. God knows how 'tube' got into the mix.
  13. Okay, I am not going to reply to any of your points made, as I don't think I can compete with the amount of cursing and sound effects. I just have one question, has MCCodes done anything specifically wrong to you, or do you just like to bash other people's work, whilst promoting your team members work?
  14. So recently (less than a year or two), indirectly and directly lets see. MCCodes have got a few people jobs (whether it be working on a MCCodes game, or working for MCCodes) = good. MCCodes have brought a few new people to this community = good. MCCodes has sparked up disscussions, that help improve the code of MCCodes and the forum members' knowledge = good. MCCodes has allowed people to make new friends whilst playing MCCodes games = good. MCCodes provide us with this community (they pay the costs to run this place) = good. MCCodes apparently are working on a new version and are patching the older versions = good (we shall see when it happens but for now it's a good thing) A game does not need to have thousands of users to be considered a success, generally speaking if your game can sustain itself it's a success. As for everything being done with it, is that going to change with doing it from scratch? Maybe, but whatever you can do from scratch you can do with MCCodes (generally speaking, language dependent, impratical or not). MCCodes is still relevant, and it is still useful, maybe it's of no use to you, but it is still useful to some. As for making people see the bad, we have done everyone knows of it's flaws, we've made no attempt to hide this fact, in fact half the fun of making games (and anything really) is debugging and fixing flaws, it enhances your skills. End of the day, if you want to experience what it's like owning a game, try MCCodes as I cannot think of another engine that has the same amount of support like MCCodes (I am talking about us here at MWG, not MCCodes 'official' support), if it's not for you pick something else, simple.
  15. I've done my fair share of bashing MCCodes, however I generally agree with Cronus. It may not be the best thing in the world, but it sure has helped a lot of people (in more ways than just developing) so there is no denying, MCCodes has a place in the PBBG community, whether it has it's place for much longer is entirely up to the team and what they produce next time round.
  16. Fair enough. Thanks Cronus.
  17. Why do think such a thing? Links will be added shortly, thanks. #Edit: Links added (-the RTFM one, it's somewhat unnecessary.) Thanks Spirit, don't have a section for courses, so I'll add it to Worthy Mentions for now. :)
  18. Djkanna

    CronJobs

    Then how about storing your cron files, within /home/name/crons/ then they cannot be accessed by domain/... That way you should be able to remove the part that checks for the code, I would wait for someone else to comment on this before putting such a solution live, as I've got no idea if there is any downfalls (I'm sure there is, as why wouldn't everyone do this, if they could). If this isn't good enough, you could try some form of 'cronless crons', which you can find information about here somewhere.
  19. Djkanna

    CronJobs

    As far as I know, you can use the path, when setting up cron jobs (anyone verify this?), if that's the case, move them out of your public directory, then you shouldn't need the code.
  20. I am sure there is, it's a nifty little engine. Not so sure about here (the creator is no longer active here either), but on the ezRPG forums I think it's still active (not visited in a while).
  21. I think a series of blog posts is a great idea (providing you're willing to continue on) as the previous 5 threads are rather helpful to have. There was also talk of having a specific board just for those types of challenges, however I haven't followed up on it, so no idea if Nickson is still wanting to do such a thing. Thanks Alain. Thanks Biohazard, that's the goal. I should probably mention, anyone feels like they've found or know of a good resource that isn't in the list, share it! I will add it to the list. :D
  22. Just to note, the Mozilla docs/Google links have no content relating to PHP (afaik), I only linked them in that thread as he had no idea where to start (HTML seemed like a good place :P) I'm not sure which is best, one whole list of lots of different languages or different lists, within each language's board, relating to that one language? I suppose the seperate has an advantage of linking to different types of tutorials (IE login system, then template system), whilst the larger list, may get to clutter with such so it may have an advantage to have a list for *specific* tutorials and one that's more generalised?
  23. Looks like we had the same idea. Click Me, oh please click me
  24. Okay here goes, one thread devoted to helpful links for web developers. *It's an unfinished list* Please note, whilst some are tutorials not all are, a few will be sites to prominent developers that frequently talk about techniques and tricks, others could be books that are available from Amazon and other publishers. HTML, CSS, Javascript; Mozilla Developer Network - Doc Center Google: HTML, CSS and Javascript from the ground up. Sitepoint CSS Reference W3Sc... W3fools (not specifically a resource for learning about the above, however read it!) LearnCSS Tuts+ (Free course, from Tuts+). Learn jQuery Tuts+ Please bare in mind, this is a subscription via email, you'll receive a tutorial every day, however they'll be available here when the 30 days is up. Crockford (Yes I know once again not specifically a resource for learning, however if your interested in Javascript, I cannot think of many better to follow than Mr. Crockford.) Javascript Kit Brendan Eich (Javascript tips and tricks, straight from the horses mouth.) Douglas Crockford: Javascript the Good Parts. David Flanagan: Javascript: The Definitive Guide. Eloquent Javascript Cascading Style Sheets: The Definitive Guide - Eric Meyer Andrew Burgess - Getting Good with Javascript Jeffery Way - Photoshop to HTML (It's a guide on taking your designs from Photoshop and bringing them to life, if we have a section on just PSD->HTML then this will go there, for now it's suitable to place it here.) A beginners guide to HTML & CSS. Codecadamey PHP PHP Manual PHP Anthology: 101 Essential Tips, Tricks & Hacks PHP Security Consortium Rasmus' Toys Page Dagfinn Reiersol (w/Marcus Baker & Chris Shiflett) - PHP In Action DevelopPHP (Okay so this is a tutorial site (on more than PHP), cannot verify how well written the tutorials are, but could be some gems in there) Chris Shiflett - Essential PHP Security Matt Zandstra - PHP Objects, Patterns and Practice Chris Shiflett - Blog Smashing Magazine: 50 Extremely useful PHP tools (*- Spudinski) Zend: DevZone (*-Spudinski) PEAR: PHP E & A Repository (*-Spudinski) ASP.NET ( & C# - *omited VB unless it's of use to this community then I will put some VB resources here too.) ASP.NET from scratch (NetTuts+ session) Microsoft: ASP.NET ASP.NET Tutorials C# Reference (Microsoft Developer Network) Matthew MacDonald - Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Matthew MacDonald - Pro ASP.NET 3.5 in C# 2008 Four Guys from Rolla SQL: (I'll put things relating to MySQL, SQLight etc here) MySQL Developer Zone SQL as understood by SQLight SQLCourse (unknown to me, so try it out) Tizag's SQL tutorial introduction Couch DB (Home page, there's resources available there, rather than linking to each seperate) PostgreSQL Documentation Worthy Mentions (Here I will put things that at the time of addition do not have a place in a section, or things that are on here on the forums or just things that are useful.) Stack Overflow (Very handy resource if you have questions regarding developement, languages, techniques or problems with your code, search first it may have already been asked.) Google (Why I have to mention this is beyond me) Wikipedia (Yes I know, however Wikipedia is still a useful resource if you want to find out the origins of languages, theories etc) OWASP MIT OpenCourseWare Video Lectures Sitepoint Videos (this is here because it covers more than one subject) Lynda ShowMeDo (Great idea - handy too) CodeProject (*- Spudinski) GameDev.net (*-Spudinski) Wotsit (*- Spudinski) JS Beautifier (*- Spudinski) Binary - Dec - Hex Convertor (* - Spudinski) Object Orientated Design (* - Spudinski) Code Academy (* - The Spirit) Okay please note, this is not a finished list, I'll continue to add to it, refine sections and such, this is just the start. I'll be adding resources for Ruby (and frameworks/gems) next. All resources were found by, memory,bookmarks,Google, StackOverflow,threads on here. 4: The amount of times, VB tried to screw me over whilst writing this thread. :mad: Notice: There's a few tools within this thread now (and more to come), so I may split it out into a section on just tools (language independent).
  25. PHP Manual Google: HTML, CSS and Javascript from the ground up Mozilla Developer Network - Doc Center Somewhat outdated (like most) tutorial on PHP login system Cool login system, with PHP, MySQL and jQuery PHP login page example Google works wonders. (P.S: Please start a thread of just links to tutorials and such, it's beginning to become a pain, linking to the same (type of) things over and over) #edit: scratch that, already done.
×
×
  • Create New...