Jump to content
MakeWebGames

Someone

Members
  • Posts

    283
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Someone

  1. Thanks :) Great that it has condition_code and effect_code makes it that more dynamic
  2. Or I can stop being lazy :), and declare variables if am doing hard to read stuff. $var = $row[0];   That db class looks pretty advanced
  3. Did some Googling, did not find much for mysqli_, google still insits on showing mysql_ results.   http://forums.devshed.com/php-development-5/mysql-fetch-object-vs-mysql-fetch-array-211260.html Dec 2004(!!!) I think it depends on what you are doing for it to be worth the extra performance. That is if things are the same with mysql_ and mysqli_ - Never use SELECT *, select only the columns that will be used http://phillipnb.wordpress.com/2011/07/07/php-fetching-unnecessary-column-names-in-sql/ - NWE does have rather few columns per table, not 100% sure if that helps fetching column names faster, but common sense tells me it should be a good thing. - If selecting large amount of records, or if the code is ran on every page load, like in a Auto_pre_content.php, use the proper mysqli_ for best performance. Most of the time, in our games I think we select max 20-50 at a time, think it rather safe to not think to much about performance in those cases. Leaning back to wanting $row->columnname and/or $row['columnames'], available (with time), then its up to the game owners and module developers to use it properly.
  4. When I sit upright looking straight on it gets better, italic letters are the worst to read for me. Using Firefox latest version. Don't know if there is shadowing or something on the font that might be causing it, or maybe just my eyes has to get used to it. Or maybe Im the only one having the problem. Like the overall theme, perhaps shorten the top header image, so the player don't have to scroll as much. Also, on the vote page you forgot to change the name from your old site, it says: Vote For Murder Country Now! [ATTACH=CONFIG]847[/ATTACH]
  5. That seems really cool :) I have real issues reading the text though, both on my 1280x1024 and 1920x1080 monitor. Ill post some screen shots in a bit
  6. Be _REAL_ carefull with giving random people access to your work. I would actually skip this site for that, and spend a few bucks on freelancer or oDesk or something. There may be people to trust here, but there are definitely some not to trust.
  7. Thats cool, my CSS based gradient usernames is just about ready. With time I want it so that they can be bought with Premium Points, or if they have 'supporter status'. At the moment a staff can set it from a players profile.
  8. Someone

    No Loading

    You might learn more by writing it again. But I would not really call it copyright infringement to use the snippet. Perhaps use type: "GET", As according to guy expert on interfaces, POST causes two http calls to be made, and should be avoided unless sending much data. If you do that, make sure that the php backend script dont already use $_GET['bust'], if it does use $_GET['bust'] Change data: "bust=" + $(this).attr('id'), to data: "bustid=" + $(this).attr('id'), and look for $_GET['bustid'] in the php script. or something
  9. Someone

    No Loading

    Have the link or button, or what else, the user clicks to bust out, have class named bust   <a class="bust" id="#THENUMBERYOUUSUALLYPLACEINTHEBUSTURLDONTMEANTOYELLJUSTHIGHLIGHTING#" href="#">Bust</a> <div id="content">the busting result will be here</div> <div id="refresh"> this is probalby where the list of inmates is shown </div>   I assume you have a jail and jailbusting script already, that may be soemthing like jail.php?bust=1234 url: "../php/prison.php", ^ change that to match the location of that script, have script look for $_POST['bust'] (remember to validate), and then do the busting, echo the result, and die; Whatever is echoed here should show up in the content div. Same principle with prisonfeed.php
  10. Answer accepted. I did a read up sometime on mysql_fetch_object vs mysql_fetch_array and that was claimed to be insignificant difference. But that compared to not geting the column names I can see be slower. I do like speed, so Ill live fine with $row[0] (dont know the technical term for it)
  11. Someone

    No Loading

    I am not gonna register there, so I only speak in general. yourjail.php should echo the message in html that you want to show $('#bust').click(function(){ $('#bustMsg').load("yourjail.php?bust=bustid"); })     <button id="bust">Bust from jail</button> <div id="bustMsg"></div>
  12. I can appreciate nostalgia nostalgia of fetching rows in an array. But $row[4] and $row[6] does not tell you very much when reading code. Think we need $row->last_post, there is $row['last_post'] when using $db->LoadData() but that only works when fetching single rows (I think). Unless there is significant optimization benefits from using $row[0]
  13. Someone

    No Loading

    http://api.jquery.com/jQuery.ajax/
  14. This error would not happened if you had adjusted last_post (set to null) in forum_sections though :)
  15. 350-357 if(!$r2->EOF){ echo "<td><a href='index.php?p=forums&t={$result->fields[4]}'>" . htmlentities($r2->fields[0]) . "</a></td>"; if (in_array("view_player", $modules)) echo "<td><a href='index.php?p=view_player&id={$r2->fields[2]}'>{$r2->fields[1]}</a></td>"; else echo "<td>{$r2->fields[1]}</td>"; echo "<td>" . FormatDate($r2->fields[3]) . "</a></td>"; }   Added at 350 if(!$r2->EOF){ and } at 357
  16. A pre made account that we can login with, so we don't have to register just to look around. Many games come and go here, and the professionalism of the owners.. varies
  17. Perhaps you have a demo login we can use?
  18. Here is the thread about that script http://makewebgames.io/showthread.php/42433-Free-V1-V2-MOD-Horse-Racing-ported-to-NWE
  19. No rush, if I can count that its there Ill just add my own solution until its officially added. Just good to know if I can count on it being there for others when I release a Premium Points module. Should be quite handy feature.
  20. Id say that quite god actually. Calling my ISP would be longer (as in 4 hours after opening monday)
  21. How about a column in premium_packages that we can have run able code in. So when a person purchase the package, the code is ran. As we can do with the use stats.
  22. I leave the computer for a few hours to help a neighbor, and this is what happens. A question is open for hours.
  23. I need to type faster :)
  24. Hope this helps in modules/config.xml <key name="currencyStat" value="Gold" description="The stat used for the currency within the game." /> I think this is suppose to be in the admin panel somewhere, but not find it either.
  25. Ooooops   Error: Invalid argument supplied for foreach() Error in F:/xampp/htdocs/nwe/modules/view_player/content.php Line 69 Error in F:\xampp\htdocs\nwe\libs\common.php Line 554 Error in F:\xampp\htdocs\nwe\index.php Line 321   I think it breaks if the player profile being viewed does not have an avatar. My admin profile works, btw its showing a nerd again since I updated the module :p (big deal, people should not update directly to live games anyways)
×
×
  • Create New...