Jump to content
MakeWebGames

Danny696

Members
  • Posts

    2,632
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Danny696

  1. Anyone noticed that when you login, you go to a redirector, and it doesnt go to the right page. anyone else had this problem?
  2. dont forget to make a session before you make a cookie, i learn that much about cookies. Try http://www.w3schools.com/PHP/php_cookies.asp and http://www.w3schools.com/PHP/php_sessions.asp for php cookies, for js cookies try: http://www.w3schools.com/js/js_cookies.asp
  3. Danny696

    Help

    No.
  4. What you do it go and learn php and then stop asking questions for everything. - Freindly advice
  5. Danny696

    Help

    To run it, a sever to look at the code, notepad.
  6. Typical. check that the ammount of rows going in the table is the same as the table, and make sure everything when making the item has a 0 or something in it
  7. Well seanybob, your a good coder................
  8. WRONG! if($_GET['ID'] != abs(@intval($_GET['ID']))) { $db->query("INSERT INTO fedjail VALUES('',{$_GET['ID']}, 300, $userid, 'Hack Attempt')"); $db->query("UPDATE users SET fedjail=300 WHERE userid={$_GET['ID']}"); die("For attempting a known sql injection, your IP and Name has been banned. Nice attempt, Enjoy your Fed jail sentence."); }
  9. Danny696

    Help

    seanybob you left out a { and if you want a js popup, use this: <?php switch($_GET['action']) { case 'testfunction': test_function(); break; } function Test_function() { if ($_POST['test']==1) echo'<script type="text/javascript"> function message() { alert("The test works."); } </script> <body onload="message()">'; else if($_POST != 1) { echo'<script type="text/javascript"> function message() { alert("The test doesnt work."); } </script> <body onload="message()">'; } else { print "<form action='file.php?action=testfunction' method='post'> <input type=hidden name=test value=0> <input type='submit' value='Fail button' /></form> <form action='file.php?action=testfunction' method='post'> <input type=hidden name=test value=1> <input type='submit' value='Win button' /></form> "; } ?>
  10. Ermm. slight problem, you need to update the user table, as thats where the header file will check to see if the user is in fed or not.
  11. That would not work, try if($ir['smoking'] >= 1) { $db->query("UPDATE userstats SET strenght=strenght-2 ..... WHERE userid=".$ir['userid'].""); exit; } replace .. with agility, guard, labour and iq
  12. Danny696

    Gym Error

    try doing something like: UPDATE `dbname`.`userstats`
  13. Thanks for that a_bertrand, im 10 years behind haha :P
  14. I doubt this is your script, in another spammy post, you ask where you can learn php.
  15. Mabey use an if statement, so if the itemid = blahh { change users race to different one }
  16. Sorry for calling you a noob, i just get annoyed at people who ask for help too much.
  17. replace $db->query("UPDATE users SET signature='{$_POST['newsignature']}' WHERE userid=$userid",$c); with mysql_query("UPDATE users SET signature='{$_POST['newsignature']}' WHERE userid=$userid",$c);
  18. replace: global $ir,$c,$userid,$h; with: global $db,$ir,$c,$userid,$h; When did you start making your game
  19. Use Notepad++, free software, has Syantax highlighting and can be used for quite alot of lang's
  20. check out W3 schools, not the best but its good for a starter
  21. But then you need to intergtae it, something not alot of people can do
  22. Off-Topic - You said his mods are annying, thats insulting. "magictallguy's forum is confusing to work out how to get it to work if your a beginner" - Im sure a beginner will read thougharlly (Wheres the damn spell check!) the instructions, if i said to a newbie, "Install this Forum" im sure they would do it without and hassle, because they would read what to do. Im sick and tierd of people never reading what has to be done to make a mod work, Lets take an example of an old mod from the CE days, a cocky newb installed it to their game, and then complained it didnt work, they posted the error, they didnt run the SQL. Then lets take an example of one of Nicholas 'errors' HE installed a mod that MTG made, then posted ip the error saying the function wasnt their, when it said, as clear as day, that you need that function. N00B's becoming worse and worse every day. On-Topic - DJK's right if you want a secure site, re-code it or pay someone like mtg :whistling: to do it
  23. That ip has a sever behind it.
  24. ;) sometimes you gotta be harsh to be nice
×
×
  • Create New...