Jump to content

jcvenom

Members
  • Content Count

    575
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by jcvenom

  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
  15. Thanks for this :) only question I have is how would I loop all the emojis from the database into an array? I really don't want to type array(':smile:'=>'<img src="so and so"/>'); 300 times
  16. I think this would've done the same thing if I used a regex //It wont let me post the regex code so its replacing it with an image in the forums so remove the " / " after the : $matches = regex($content, ':/(*){0:10}:'); foreach($m as $matches){ $ccm->query("SELECT `e_name` FROM `emojis` WHERE `e_name` = '".$ccm->escape($m)."'"); if($ccm->num_rows) $content = replace(':$m:', '<img ...>') }
  17. Thank you very much - - - Updated - - -   OK thanks anyway
  18. Close, but not entirely what I'm looking for, you see the text in the db for example would look like ( eyes ) and the emoji being inputted into the textarea on the userend would be :eyes:, therefore my code would search the content for :eyes:, then remove the : and the search the db for eyes and load its image
  19. I have about 300 emojis, and I really don't want to type   $emoji = array(':eyes:'=>'eyes'); //Now type that 300 times //instead i want to do this foreach ($emoji as $value) { $emojis = array( ':'.$value.':'=>''.$value.'' ); echo var_dump($emojis)."<br/>"; );
  20. I've been working on an emoji feature for a forum i'm building and I ran into a little problem. Firstly I was wondering would it be possible to create an array from a foreach loop like this? Then find all occurrences of string? And is what I've explained below possible Thank you   $fetch_emojis = $ccm->query("SELECT * FROM `emojis`"); $num=0; while($e = $ccm->fetch_row($fetch_emojis)) { $num++; $emoji[] = $e['e_name']; } foreach ($emoji as $value) { $emojis = array( ':'.$value.':'=>''.$value.'' ); /*I would need something to check if a string starts with : and ends with :. Let's say the emoji code was :eyes: my code would find the string in the textarea then then remove the : colons from the string then it would find the string in the array i've created in the foreach loop and i'd continue from there */ echo $emoji[$_GET['t_c']]; }
  21. I would like to apologize to these 3 [MENTION=71662]CaptainQuack[/MENTION] [MENTION=71663]IllegalPigeon[/MENTION] and @rob0t1337 , for my childish manner and they way I behaved when they tried to give me great information about coding, I would also like to apologise for any bad language used, towards them or anyone else, they are great people and I would highly recommend them, not just as developers but as great people of MWG, very helpful, I would like to thank them for the information they gave me on coding, and I feel they deserve a public apology, you guys deserve better than the rudeness I gave you. I feel horrible about what I said, and the way it must have made you feel. I am truly sorry for this. I would greatly appreciate your forgiveness
  22. jcvenom

    Jcvenomlive.com

    Remove what I told you to remove, secondly your sessions are handled in your style_top $_SESSION['playerid'] has been setup in your style_top
  23. I'm 100% with what I said, your going around spamming other peoples game, slandering people causing chaos, now clients are asking me about your game etc which I hadn't a clue existed until about a week and a half ago, as for your RC engine which is full of bugs, you may have purchased a licence to use the engine but you got scammed with your current copy, since you "UPGRADED" to a modified version. Incase you didn't know the person that sold you the modified version mr killer is using the exact version for multiple game he owns to scam players as we can see here. Your game [ATTACH=CONFIG]2178[/ATTACH] His game [ATTACH=CONFIG]2179[/ATTACH] I just warned you because I don't know you, I've never worked for you and I don't want to be associated with you in any manner, so i'd appreciate if you would stop mentioning our names together thank you. - - - Updated - - -   remove $_SESSION['playerid'] = 1; By setting it to 1, your setting a session therefore If i go to companies.php, I can access your account, look I told you, Mr killer scammed you and bare in mind you paid for the script. You sessions are handled in your style_top so remove that code
  24. That's not the issue me.playerid = m.playerid its meant to be like that, the m. part of the code is the members table of your query
×
×
  • Create New...