Jump to content

jcvenom

Members
  • Content Count

    575
  • Joined

  • Last visited

  • Days Won

    4

jcvenom last won the day on December 27 2015

jcvenom had the most liked content!

Community Reputation

5 Neutral

1 Follower

About jcvenom

  • Rank
    Trainee
  • Birthday 04/04/1995

Personal Information

  • Location
    uk
  • Interests
    Coding, football
  • Occupation
    Developer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. jcvenom

    MWG new topic

    I 100% agree with you, especially when you stated "My usual suggestion would be to see where the forum goes (allow content to be created fairly freely by anyone) and create/adjust categories accordingly" I too think more freedom should be given to the user to be able to create categories. And it would help alot if people who new their stuff were brought in to managed certain categories to provide help and tutorials when needed.
  2. Yeh i do this aswell, I've a staff log system which logs everything staff members do not only in the staff panel but in game aswell, just so i can track you know
  3. No!. I think this would be silly especially if the person didn't intend to access the page on purpose. The error "you cannot do such and such while in jail" is in place for a purpose, in reality the user shouldn't and wouldn't be able to access the page and if they happen to navigate to the "forbidden page" boooom the power of php comes in and simply checks if the user has the correct privilege to access the page e.g if the users in jail then don't allow access and so on... But don't feel negative about my response :) it's good to share ideas and such i'll give you a like.
  4. jcvenom

    MWG new topic

    So far we have seen the ups and downs of the MWG community. Although McCodes in my opinion was MWG's most talked about topic I feel like we have to accept it's faith, look MCC is dead... In my eyes without it we see a community slowly dying. The lack of support back then has truly affected this forum and I'd hate to see it die but if nothing is done about it the forum will most likely die. I'd like to praise [uSER=53642]dave[/uSER] for taking over the forum and giving us a nice revamp he should really be applauded. Id also like to thank some of MWG's hardworking members who give their time to provide help and work for others. [uSER=68711]KyleMassacre[/uSER] [uSER=64603]Sim[/uSER] [uSER=65530]Coly010[/uSER] [uSER=52003]Dave Macaulay[/uSER] [uSER=65100]W3Theory || Peter[/uSER] [uSER=69001]Zettieee[/uSER] [uSER=50378]Guest[/uSER] [uSER=65371]sniko[/uSER] [uSER=64687]Dominion[/uSER] [uSER=64684]Dayo[/uSER] and many more. Recent improvements New ownership New design Suggestions I'd suggest removing inactive engines with no support Allowing members to introduce new engines this would create things to talk about and would also attract new users New categories mainly in languages, now you might say ooh there's already categories for languages but a lot of the topics posted are either outdated or inactive. It would be nice to see new languages being taught and introduced into the forum. It would move the forum in the right direction so maybe bringing in members who can kickstart this would be great. Atleast there would be something to discuss rather than "MCCODES" all the time this would also bring in more experienced members as well. New chat system, I think IRC is messy and it would be nice to see something like slack implemented on MWG. It would also be easier to provide help and receive help instantly Moving away from the McCodes concept, I've nothing "really" against MCC except for the lack of support but it does provide a stepping stone but other than that it's deemed useless. Everytime I think of MWG I think of MCC and I'm sure others do too, in reality this is a forum and not a game so let's move away from that thought... again this goes back to point 3 so new discussions are definitely needed. This is my discussion I can already see arguments or disagreements with what i've posted so feel free to comment i'd like to see your thoughts below
  5. No problem i'm glad I could help. Also you might want to change this $db->query("UPDATE `users` SET `money` = `money` = 10000, `exp` = `exp` + 10000, `crystals` = `crystals` + 5000 WHERE `lma` = 1"); $db->query("UPDATE `users` SET `money` = `money` = 10000, `exp` = `exp` + 10000, `crystals` = `crystals` + 5000 WHERE `mostzkills` = 1"); to this Explanation: you were making the users money = $10,000 rather than adding $10,000 just apply the code below to your current as you say fixed version and your done :) anymore issues feel free to post $db->query("UPDATE `users` SET `money` = `money` + 10000, `exp` = `exp` + 10000, `crystals` = `crystals` + 5000 WHERE `lma` = 1"); $db->query("UPDATE `users` SET `money` = `money` + 10000, `exp` = `exp` + 10000, `crystals` = `crystals` + 5000 WHERE `mostzkills` = 1")
  6. Correct my work if needed, I corrected what I could understand from the code above so i'm not 100% sure how it's meant to work btw it's untested //check to see how many humans are left $humans_alive_query = $db->query("SELECT COUNT(`userid`) AS `humansalive` FROM `users` WHERE `humanorzombie` = 0"); $haq = $db->fetch_row($humans_alive_query); $humansalive = (int) $haq['humansalive']; //Human //if there is only one human then select the user and credit them with there awards if ($humansalive == 1) { //Fetch the Last user that is a human (Winner in this case) $last_man = $db->fetch_row($db->query("SELECT `userid`,`username` FROM `users` WHERE `humanorzombie` = '0' ORDER BY `userid` DESC LIMIT 1")); //Set the last user as a human as the last man alive $db->query("UPDATE `users` SET `lma` = 1 WHERE `humanorzombie` = 0 AND `userid` = '{$last_man['userid']}'"); //Zombie //Select the user with the most kills as a Zombie $z1 = $db->fetch_row($db->query("SELECT `userid`,`username`,`zombiekills` FROM `users` WHERE `zombiekills` > 0 AND `humanorzombie` = 1 ORDER BY `zombiekills` DESC Limit 1")); //set the user who killed the most humans as a zombie //No need to set the user as a zombie, because we've already selected the user who is a zombie with the most kills //$db->query("UPDATE `users` SET `humanorzombie` = 1 WHERE `userid` = {$z1['userid']}"); //Last man alive winner(Human) $last_man_alive_winner = $db->query("SELECT `userid` FROM `users` WHERE `lma` = 1 AND `humanorzombie` = '0' ORDER BY `userid` DESC LIMIT 1"); /*Jcvenom(Really don't understand what your trying to do here) *More info needed about the zombie kills as a human */ //Most zombie kills as a human winner $most_zombie_kills_winner = $db->query("SELECT `userid` FROM `users` WHERE `humanorzombie` = '0' ORDER BY `zombiekills` DESC LIMIT 1"); $mzkw = $db->fetch_row($most_zombie_kills_winner); //Most human kills as a zombie winner $most_human_kills_winner = $db->query("SELECT `userid` FROM `users` WHERE `humanorzombie` = '1' ORDER BY `mostzkills` DESC LIMIT 1"); $mhkw = $db->fetch_row($most_human_kills_winner); //Credit users with prizes based on above and send event and announcement //Last man alive $db->query("UPDATE `users` SET `money` = `money` + 10000, `exp` = `exp` + 10000, `crystals` = `crystals` + 5000 WHERE `lma` = 1 AND `humanorzombie` = '0' AND `userid` = '{$mzkw['userid']}'"); event_add($mzkw['userid'],"You were the last human alive. You have won $10,000 in cash, 10,000 Experience and 5,000 Gold Coins."); //Most human kills(Zombie in this case) $db->query("UPDATE `users` SET `money` = `money` + 10000, `exp` = `exp` + 10000, `crystals` = `crystals` + 5000 WHERE `userid` = '{$mhkw['userid']}'"); event_add($mhkw['userid'],"You killed the most humans. You have won $10,000 in cash, 10,000 Experience and 5,000 Gold Coins."); //Announcement $db->query("INSERT INTO `announcements` VALUES('The Zombie invasion has ended. The last man alive was {$last_man[`username`]}. As the last man alive {$last_man[`username`]} recieved $10000, 10000 EXP and 5000 Gold Coins. The top Zombies was {$z1[`username`]}. {$z1[`username`]} has been awarded $7500, 7500 EXP and 3500 Gold Coins for getting the most kills as a zombie. {$z1[`username`]} in First place. {$z1[`username`]} has been awarded $5000, 5000 EXP and 2000 Gold Coins.')"); $db->query("UPDATE `users` SET `new_announcements` = `new_announcements` + 1"); //reset event back to zero $db->query("UPDATE `hvzstats` SET `hvz`= 0, `totzombies` = 0"); $db->query("UPDATE `users` SET `humanorzombie` = 0 , `zombiekills` = 0"); } else { //More than one human left therefore the above code won't run }   I'll make any corrections if you want :)
  7. There's actually quite a few errors I see like $z1=$db->fetch_row($db->query("SELECT `userid`,`username`,`zombiekills` FROM `users` WHERE `zombiekills` > 0 AND `humanorzombie` = 1 ORDER BY `zombiekills` DESC Limit 1")); //set the user who killed the most humans as a zombie $db->query("UDATE `users` SET `mostzkills` = 1 WHERE `userid` = {$z1}"); This line $db->query("UDATE `users` SET `mostzkills` = 1 WHERE `userid` = {$z1}"); Should actually be   $db->query("UDATE `users` SET `mostzkills` = 1 WHERE `userid` = {$z1['userid']}");   I'll have a look at this for you and post a fix based on what I have here :)
  8. ok, well i appreciate the help from everyone else thank you
  9. You're wasting your time, bringing up the past, maybe you misinterpreted what I stated at the start, or maybe I didn't explain in a more simplified way for you to understand. I really don't care about what you're saying, you're the only one here trying to look for trouble whereas everyone else has applied themselves to my question and helped me understand something I already know period!.
  10. I'm no longer coding for clients either, which doesn't mean I can't develop either I still have 3 and half years experience on me. I had a thought about that and I really want to be prepared and I want to correct myself so I can be up to standard, can't be delivering code that's not meeting standards e.g OOP so I've taken a break from that and finishing my studies and hopefully I'll into manchester uni for computer science and develop in a proper developer there. Anyways I'm working on my game and hope to have it released later this month hopefully, It's hard work working by yourself with such work loads but I've been building it since april and It's going all good
  11. Thanks for the example :) , but I've already figured it out and my system I've built works fine, all I was confused about was how to create an array with my while loop results, I've also tried it this way prior to you posting this, and to answer your question about client work I've never done something like this... That's why I posted here to maybe get an explanation from those better than me with a better understanding. Thank you anyways hope that answers your question
  12. I just need an example mate, I'm not arguing nor did I post this because I think I know it all, I'm just asking for help and if you seriously feel like not helping me maybe someone else will anyways thank you
  13. Yes I know it's capable of that, and No I didn't claim to know anything I'm just asking for help and you seem to know more so I'd appreciate the help and not bringing things up thank you - - - Updated - - -   And I'm using procedural PHP, not OOP. After I'm done school I'm starting computer science and I'll learn it there
  14. I'm currently using mysqli. I think you're slightly mistaken I do realise this is basic PHP correct me if I was wrong, If I was using $emojis = array(':eyes:'=>'<img src="whatever"/>'); I could easily just use str_ireplace(array_keys($emojis),array_values($emojis), $string); But it's my fault for not giving you a clear understanding, basically I want to loop the emojis stored in my database and store them in an array but it's an unexpected challenge i'm facing any ideas would prove useful
×
×
  • Create New...