
ignite
Members-
Posts
170 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by ignite
-
Re: [mccode] Register Page Oh my bad i didn't have the right mysql direction.
-
Re: [mccode] Register Page It don't work for v1.
-
Re: Help with referals. Bump
-
Re: Job stats I didn't have the file uploaded. Thanks.
-
My crons for job stats gains are no longer working can any body tell me what cron page they are in as i can't find them any were ? :-D
-
Re: Help with referals. V1
-
Re: Currency I think you would need to make a table in users called credits.
-
Re: Help with referals. bump
-
Re: streets (help) Make sure the value on the submit button is 1
-
Re: streets (help) if ($chance == 13) { $hosptime=(int) rand(1,20); $loseruser = $ir['userid']; $reasonhosp = 'Got hit by a car while exploring the streets.'; mysql_query("UPDATE users SET hosptime=$hosptime WHERE userid=$userid",$c); mysql_query("UPDATE users SET hospreason='$reasonhosp' WHERE userid=$userid",$c); event_add($ir['userid'],"You walked across the street and a car was speeding. The car hit you HARD. You were sent to the Hospital",$c); die ("While you were walking across the street, you got hit by a car. Good news: You aren't dead Bad News:You have to stop exploring and go into Recovery "); Thats what i use (you will need to edit this to fit your code).
-
Re: streets (help) Why don't you just add a chance were you go to hospital ?
-
Re: User Notepad Thanks works great.
-
Re: Help with referals. Still don't work :?
-
Re: Help with referals. Ok, suits me but im wondering if the fault is some were else.
-
Re: Help with referals. Hmm It still doesn't add a referal to the user who refered the player or no event.
-
It seems im having abit of a problems with referals. For everyone new player that signs up i get and event saying thanks for refering so and so this happens even low i haven't referred them. Here is the code in register.php $_POST['ref'] = abs((int) $_POST['ref']); $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $q=mysql_query("SELECT * FROM users WHERE lastip='$ip' AND userid={$_POST['ref']}",$c); if(mysql_num_rows($q)) { die("No creating referral multies. Bad dog."); } if($_POST['ref']) { $q=mysql_query("SELECT * FROM users WHERE userid={$_POST['ref']}",$c); $r=mysql_fetch_array($q); } mysql_query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, 'Male', unix_timestamp(), '{$_POST['email']}', -1, '$ip')", $c); $i=mysql_insert_id($c); mysql_query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)", $c); if($_POST['ref']) { require "global_func.php"; mysql_query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}",$c); event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c); mysql_query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$ip')", $c); Can someone tell me what im doing wrong ? Ps: i think this is the right place to post this but if it's not im sorry.
-
Re: help with re-arranging header.php Mail me if you still need help.
-
Re: Assassin-City ~ Cronjobs He said the same thing to me then ip banned me from his site and blocked me on msn. I was running the crons on my host so i just disabled them lol.
-
Re: Medical items thanks thats worked a treat.
-
I've made some medical items witch reduce certain amounts of time when a user is in hospital. The problem is if a user is in hospital for 19 minuets and uses a small medi kit witch takes of 20 minuets. It will put the user in hospital for -1 minuets. Heres the code i used. if($r['itmname'] == 'Medi kit') { mysql_query("UPDATE users SET hospital=hospital-1 WHERE userid=$userid",$c); } print "You spray a {$r['itmname']} into your mouth. You feel a bit of health coming back to you.";
-
Re: no encryption Thanks Vorlen that did it. If theres any think i can help you with just let me know.
-
Re: no encryption My password change does not work i think it's because my passwords are encrypted. Any idea on what to edit in my password change file ?
-
Re: staff applications Thanks i found i had to add { } round $_GET['app'] bit to. But it works fine now so thanks again.
-
Re: staff applications PHP version 4.4.5 is what it sese.
-
Re: staff applications It now sese Array'app' in the text area.