
Danny696
Members-
Posts
2,632 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
Events
Everything posted by Danny696
-
$menuhide=0; $atkpage=1; or just add that before the include "globals.php"; on attach.php
-
what about it ;) EDIT: NOOB ALERT PHP is very very clear with errors, it tells you what file its on and what line. people like you should learn to read before you code fail at coding
-
http://www.london-wars.com/login.php There is a working demo on there.
-
Im not saying you didnt make this, but im 100% positive that someone else has made there own version of this
-
-.- this may get removed, but before you make a new game, you should shut your old one down, and learn the basics of coding, all you ever do is ask for help
-
Ok, So no matter how i change this up, something doesnt work right.
Danny696 replied to Joshua's topic in Game Support
use $_POST['race'] -
Question - Is it possible to put an image as a username?
Danny696 replied to Gucci Mane's topic in Game Support
Nice Md, How would you use that in the sctipt itself? -
$q=$db->query("SELECT cb.*,u.*,c.npcid,cy.cityname FROM challengebots cb LEFT JOIN users u ON cb.cb_npcid=u.userid LEFT JOIN challengesbeaten c ON c.npcid=u.userid AND c.userid=$userid LEFT JOIN cities cy ON u.location=cy.cityid"); while($r=$db->fetch_row($q)) { $earn=$r['cb_money']; $v=$r['userid']; $a=$db->query("SELECT count(*) FROM challengesbeaten WHERE npcid=$v"); $times=$db->fetch_single($a); and print"$times";
-
From the old battle tent $a=$db->query("SELECT count(*) FROM challengesbeaten WHERE npcid=$v"); $times=$db->fetch_single($a);
-
Use an array, $array = array('5', '10', '15,'); etc...
-
I have coded a suggestion box and a staff file to go with it. In the suggestion box there are four things users can suggest to the game; Modification General Item Courses I thought of these as a game will never stop adding mods or items, general will be things like comps etc.. In the staff file you can use or delete the post, when used they admin can reward the user crystals and money, on items theres two extra options; 'Use now!' and 'Give user item' the use now feature is also on the courses option, in case you want it added at a later date. What you get when you buy this suggestionbox.php staff_boxes.php 4 tables of Sqls Instructions. Copies available: 10! Price $5 Pay-pal: Pm me ;) Any questions or queries stick em' up here or pm me. Thanks Danny696.
-
Global_Func.php -> Function Check_Level -> After query post it, that will give them a point everytime they re-load there page, mabey add another row, and when they get a point, it goes up.
-
Your giving them a .1% advantage. you may not see it as its soo small
-
How long did that take you illegalife?
-
Not sure if this will work, i just edited the the name change. function login_change() { global $ir,$userid,$h; print "<h3>Login username Change</h3> Please note, this will keep your in-game username the same. just the username you login with will change. <form action='?action=loginchange2' method='post'> New Login Name: <input type='text' name='newname' /> <input type='submit' value='Change!'/></form>"; } function do_login_change() { global $db,$ir,$c,$userid,$h;$r = $db->fetch_row($db->query("SELECT username, loginname FROM users")); if($_POST['newname'] == '$r->username' || $_POST['newname'] == '$r->loginname') { echo'This username is in use.' $h->endpage exit; } if($_POST['newname'] == "") { print "You did not enter a new login name. [url='?action=loginchange']> Back[/url]"; } else { $_POST['newname']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['newname']); $db->query("UPDATE users SET loginname='{$_POST['newname']}' WHERE userid=$userid"); print "Login name changed!"; } } E-mail change function name_change() { global $ir,$c,$userid,$h; print "<h3>E-Mail Change</h3> <form action='preferences.php?action=emailchange2' method='post'> New Name: <input type='text' name='newemail' /> <input type='submit' value='Change E-Mail!' /></form>"; } function do_login_change() { global $db,$ir,$c,$userid,$h; $r = $db->fetch_row($db->query("SELECT email FROM users")); if($_POST['newemail'] == '$r') { echo'This e-mail is allready in use.' event_add(1, ''.$ir['username'].' attempted to change his/her e-mail to another one that was in use, the e-mail was '.$_POST['newemail'].'. Fedded for 5 days, please look into this.'); $db->query("ALTER TABLE users SET fedjail=5 WHERE userid=$userid"); $db->query("INSERT INTO fedjail VALUES('' $ir['userid'], 5, 'System', 'Multi Email, Look into this')"); $h->endpage exit; } if($_POST['newemail'] == "") { print "You didnt enter a new e-mail, this will break your account! [url='?action=emailchange']> Back[/url]"; } else { $db->query("UPDATE users SET loginname='{$_POST['newname']}' WHERE userid=$userid"); print "Email changed!"; } }
-
this file has a error and i cant figure it out? can someone help?
Danny696 replied to Nicholas's topic in Game Support
i didnt say i made this lol. did i? So whos is this, and do you have there permission to post it? [warnbox]The member asked help on a problem , final verbal warning Danny be respectfull and helpfull towards members[/warnbox] -
Because you havent got php5, you get an error, if you follow the damn insturctions then its not annoting. [warnbox]Post edit reason: Do not dish members, be helpfull and respectfull[/warnbox]
-
$c is more for McCodes V1
-
this file has a error and i cant figure it out? can someone help?
Danny696 replied to Nicholas's topic in Game Support
Nicholas, im pritty sure you didnt make this. :| -
Sprinf DOES NOT SECURE. FULLSTOP.
-
sprintf does not secure, simple formatts
-
Dreamweaver, are you nuts??? i use notepad ++
-
Thanks i wouldnt have done it without your idea tho ;)
-
Yer i suppose they would, and i wouldnt suggestion adding this to an succesfull game, mabey a starting one, if you wanted this type of this on a succesfull game mabey use this one: [mccode v2.x] V2 shop discount for donators