Jump to content
MakeWebGames

KyleMassacre

Members
  • Posts

    2,921
  • Joined

  • Last visited

  • Days Won

    48

Everything posted by KyleMassacre

  1. Lol it took me a while to figure it out I had to look at it closely
  2. What is the best setting for forum posts in my game? My posts keep getting cut off because im assuming its set to varchar (255).
  3. realKyleMassacre <- some punk took KyleMassacre before I got my ps3 but you will find me on BF3 if im on it. I got burnt on COD.
  4. I dont know much about lite but ill give it a shot. Maybe try something like replacing this: $query="UPDATE users SET energy=energy+(maxenergy/(12.5)) WHERE energy<maxenergy"; With this: mysql_query="UPDATE users SET energy=energy+(maxenergy/(12.5)) WHERE energy<maxenergy"; Or if you do what I did and remove the maxenergy from incrementing every level try this: mysql_query="UPDATE users SET energy=energy+##"; Replace ## with whatever number you want and put that in the minute cron Or maybe what you can do is like what I do since im real new to this is just run the code in the sql and if you dont get an error then its not the code its something else
  5. Im a little confused here with your post, I thought you arent too good with mccodes:  
  6. If it is still this same string: $par=$db->fetch_row($m); you need to change the $db-> to mysql. Any where it wants to call out for a $db must be changed to mysql_query. The easiest way to do that is in your code editor click on the binoculars (dont know it thats spelled right, im on my phone and no spell check) type in the find $db->query and then under it put in replace with mysql_query. V1 and lite dont use the term $db they use mysql.
  7. I bout mccodes just about a month ago and that was the first time I have ever even looked at a php file and just looking over them and talking to another mccode game owner and people in these forums I have learned quite a bit in this short of time. I am in no way saying im a "coder" or any of that jazz since most my mods come from here and this place offers a lot of mods along with a lot of help with your mods. So for inexperianced people like myself take it from me its a good start
  8. This right here: <?php include "globals.php"; $m=$db->query SELECT FROM users WHERE userid={$ir['married']}; $par=$db->fetch_row($m); if($ir['married'] == 0) { Is calling out for globals.php.so what you should do is like what the thread I posted and what nickson says. Change your globals.php with what that other thread says and change all your db->query with mysql_query
  9. This is V1 right? Maybe try this: makewebgames.io/showthread.php/22327-Tutorial-v2-v1-Conversion I hope this helps cause your post says V1 and globals.php is a V2 thing along with $db-querys
  10. KyleMassacre

    Game

    Thats good to know, is there any advantages to keeping it in or adding it at the end?
  11. KyleMassacre

    Game

      I am no coder but I dont think this will work. Shouldnt it be like this: <?php /** * header.php **/ echo "I must provide more information to MWG if I am to receive any assistance"; ?>
  12. Ughhh I see it now, stupid paid mods. So much for so called "support". Its needs: db->query("DELETE FROM gangwars WHERE warDECLARER={$ir['gangID']} or warDECLARED={$r['gangID']}"); Right?
  13. when you try to mug a person you get this error: QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'warDECLARED=' at line 1 Query was DELETE FROM gangwars WHERE warDECLARER=,warDECLARED= and here is the line of code it is talking about:   $db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}");   can someone please help?
  14. Ok i have trying to get a facebook like button on my login page but its not working at all is there anyway one of you guys can give a little tutorial on it
  15. Whos mod is it, I like it
  16. KyleMassacre

    Game

    Im tempted to use it just to see what it does exactly haha
  17. Well, i got no errors which was great so thumbs up for that one but its not hiding them in the inbox   That would sound good if I had any idea what your talking about lol. Im a huge n00b so what your saying to me sounds like wookie. Im still trying to learn as much as i can but i still have trouble with the SQL and all te terminology of it sorry!!!
  18. Yeah, I think ill stick to prototypes way. Adding another table is just too much for me just to keep duplicate info but thanks everyone for your help now I can bust those sneaky, pesky people advertising or bartering from one game to another
  19. Figured it out
  20. KyleMassacre

    Parse Errors

    you will probably get some faster/better help if you post the portion of code its referring to. Maybe throw in a little before and after line 362.
  21. Ive been looking around for a mailbox mod that if a user goes to delete the message it doesnt delete it from the db just hides it from there mailbox so only i can delete the messages after i decide if i want to read all of them or not any help would be great
  22. Does anyone have any ideas about this? I tried richards mods that he has up here but i could not get them to work for the life of me. Im not a very good coder at all and little bugs i may be able to fix but not the whole thing.
  23. Im trying to add it as a donation item as a "donator days" type thing but call it "VIP"
  24. im not understanding why you would want to "kill" members in your game???? The #1 in HOF could then wipe out your entire user database then.
  25. Im new to this whole thing and no too keen on queries but when I tried it without a new field it would keep giving me the pack. Even if tried setting something up like 'days_old'=0 or whatever if they would log out and log back in they would get it again so I figure wth whats another 0.00001 second lol. I figure if "i" can do it this way anyone one can. But thanks for the thumbs up I spent quite sometime searching for this cause the others I seen people complained about it not working right and I hope this one is flawless.
×
×
  • Create New...