[PHP/HTML]Tha Mob - Crime game [beta]

Page 4 of 8 FirstFirst 12345678 LastLast
Results 46 to 60 of 106
  1. #46
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    I believe i have something like that =0
    I'll check on the flaws.

    EDIT:
    Picked out the flaw!

    P.S:
    If you gone over 20.000, it wouldnt add em, but just not send a message so you really dont know xD
    And, I've got a countdown now which shows: 00:00:00 (hours:mins:secs)

  2. #47
    pork pork Parker is offline
    MemberRank
    Dec 2007 Join Date
    new holland.Location
    5,873Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    Nice, reminds me of that ThuGie.nl

  3. #48
    Extreme Coder - Delphi bounty-hunter is offline
    MemberRank
    Sep 2007 Join Date
    GunZone MansionLocation
    1,725Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    internet explorer cannot display this webpage... -___-" ?

    is it offline?

  4. #49
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    Yes, its off for max 12 hrs. I need sleep xD

  5. #50
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    Looks like i'll be waiting till you wake up then so i can see the changes.

  6. #51
    Member fook3d is offline
    MemberRank
    Sep 2007 Join Date
    Leicester, UKLocation
    65Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    Quote Originally Posted by EliteGM View Post
    28 Columns in my `users` table xD
    Ouch!

    Ever thought about using database stored arrays?

    Decent looking game though, good work

  7. #52
    Account Upgraded | Title Enabled! !ToM!96 is offline
    MemberRank
    Feb 2008 Join Date
    278Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    The link dosnt work for me?

  8. #53
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    Read the other posts its offline,
    In max. 4.30 hours from now it'll be on. (in ~2 I guess).

    @fook3d:
    If I have them in that one table it saves alot of time though..

  9. #54
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    EDIT:
    Tha Mob is up and running!

    It's my mothers' birthday so don't expect too much updates.

  10. #55
    Member fook3d is offline
    MemberRank
    Sep 2007 Join Date
    Leicester, UKLocation
    65Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    Quote Originally Posted by EliteGM View Post
    Read the other posts its offline,
    @fook3d:
    If I have them in that one table it saves alot of time though..
    Would still be in 1 table, just 1 row instead of 28.

    ----------

    Easiest way I can explain it in a code it when I was using timestamps to update user accounts in a game code I was writing, by using arrays to store timestamps.

    The user row was "times" and held a value like "123456,234567,345678"

    Was then called something like:

    PHP Code:
    function energyUpdate()
    {
        global 
    $c$user;
        
        
    // Pull the data and put it into an array
        
    $data_array = array($user['times']);

        
    // Loop from the 2nd part of the array which was the energy time (Remember arrays start at 0, not 1)
        
    $x data_array[1];
        while(
    $x time())
        {
            
    $x $x 300// Cron was 5 minutes, so 60 seconds * 5 minutes = 300 seconds.
            
    mysql_query("UPDATE `usr` SET `en` = `en` + (en/10) WHERE `usr_id` = " $user['usr_id']);
        }
        
        
    // Loops finished.. So update the array
        
    $data_array[1] = $x;
        
    mysql_query("UPDATE `usr` SET `times` = '$data_array' WHERE `usr_id` = " $user['usr_id']);

    Note I just wrote the above function, not the one i actually used (Don't have it anymore as i scrapped the project) so it possibly don't work, but providing a working script wasn't my point, trying to explain how they can be used was

    There has to be a way that you can put all the whore's into an array to save the script loading 28 rows instead of 1.

    Hope this post at least helps you out a little. If you want me to help you understand it more, give me a shout through PM, but I can't say how long a reply would take should you take up the offer (No internet at home, only have access when visitting family, which is not as bad as it sounds, amazing how much work i get done locally without having the internet connection distracting me :laugh_1:

  11. #56
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    He however isnt loading 28 rows, he has 28 columns... not sure where you were reading 28 rows from?

    Although fook3d has a point, you could store alot of date relevant to eachother in one column, seperated by a comma, semi-colon etc, and then form an array out of the data returned from that column.

  12. #57
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    Doing that sounds good, but I guess I'm too far in this to change it all, unless I do alot of work, e.g almost redoing 50% of the game.

    P.S:
    If you're in jail and go to e.x the Steal Cash page, you won't get a popup, but get a nice handydandy countdown in big letters so you can follow it =)

  13. #58
    Member fook3d is offline
    MemberRank
    Sep 2007 Join Date
    Leicester, UKLocation
    65Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    Quote Originally Posted by -fedexer- View Post
    He however isnt loading 28 rows, he has 28 columns... not sure where you were reading 28 rows from?
    Depending on if your looking at "structure" or "browse" in phpMyAdmin, they are both the same.

    As he states that they are in the "users" table, my guess is that its 28 new rows (By looking at structure) or 28 columns (By looking at browse)

  14. #59
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    Fair comment fook3d, i did not realise this as i do not use phpMyAdmin on a regular basis.

    Elite, if i could, i would suggest that you do something about the premium (*) next to the item shop, it seems out of place on the right as it throws out the alignment of the menu text.

    May i suggest maybe creating a 'Premium' header, and then include all of the premium items below this, therefore saving the hassle of having that little yellow star, and people can clearly tell this is the premium zone?

    (Unless i'm mistaken and the start doesn't mean premium, but just means it's a new thing, in which case forget the header, but still take note on what i said about the alignment.)

  15. #60
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,078Posts

    Re: [PHP/HTML]Tha Mob - Crime game [beta]

    *BIG* UPDATE;
    Tha Mob now uses an iFrame !
    This gives a faster game, and less complicated !
    I've been researching other Crime games and they all used frames.

    @above:
    The * at the Shop is away.
    If you're not premium, a link under the menu header 'Main' will go to the premium info.



Page 4 of 8 FirstFirst 12345678 LastLast

Advertisement