
Gucci Mane
Members-
Posts
207 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Gucci Mane
-
Advice secure your game I did the cmarket hack and got plenty of crystals, I sent them to you I did NO damage might wanna remove link because game wont last that long around here wen Crazy-T sees a link hes a hacker like crap watch out for him
-
That actually helped alot lol I want members to be able to subscribe to my website, and a guest book lol I think I need sguest book and authenticate and login mabe lol is this correct? I dont know PHP do you know how I could get it where my forms let members subscribe to my site?
-
Does anyone have a website built of just HTML and CSS??? If so can i see a link please because I would like to know what all is possible please thanks, Gucci Out
-
ok ill try it lol Whats a good way to learn PHP from other mods?
-
I se lol. I have notepad ++ and mccodes script lol how could I teach myself PHP that way though?? (tips)?
-
Whats the best way to learn PHP by looking at other peoples mods?? I know PHP syntax
-
Ok man thanks ill tyr it later thanks. any other tips?
-
Advice Whats the best way to learn coding from other mods??
-
I tried coverting my Cyber Bank to a Crystal Bank. I just started learning PHP. I know HTML/CSS. So I figured I would try some hands on stuff :) This is the error I get: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/******/public_html/crystalbank.php on line 73 This is the script: <?php include "globals.php"; print "<h3>Crystal Bank</h3>"; if($ir['crystals']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>50000) { echo "Congratulations, you bought a Crystal Bank account for \$50,000! [url='crystalbank.php']Start using my account[/url]"; $db->query("UPDATE users SET money=money-50000,crystals=0 WHERE userid=$userid"); } else { echo "You do not have enough money to open an account. [url='explore.php']Back to town...[/url]"; } } else { echo "Open a Crystal Bank account today, just \$50,000! [url='crystalbank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db,$ir,$c,$userid,$h; echo "\n[b]You currently have \${$ir['crystals']} in the bank.[/b] At the end of each day, your bank balance will go up by 7%. <table width='75%' border='2'> <tr> <td width='50%'>[b]Deposit Crystals[/b] It will cost you 15% of the crystals you deposit, rounded up. The maximum fee is \30 Crystals.<form action='crystalbank.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['crystals']}' /> <input type='submit' value='Deposit' /></form></td> <td> [b]Withdraw Crystals[/b] It will cost you 7.5% of the crystals you withdraw, rounded up. The maximum fee is \30 crystals.<form action='crystalbank.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['crystals']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $db,$ir,$c,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['crystals']) { echo "You do not have enough crystals to deposit this amount."; } else { $fee=ceil($_POST['deposit']*3/100); if($fee > 30) { $fee=30; } $gain=$_POST['deposit']-$fee; $ir['crystals']+=$gain; $db->query("UPDATE users SET crystals=crystals+$gain, crystals=crystals-{$_POST['deposit']} where userid=$userid"); echo "You hand over \{$_POST['deposit']}crystals to be deposited, after the fee is taken (\$$fee), \$$gain is added to your account. [b]You now have \{$ir['crystals']} in the crystal Bank.[/b] [url='crystalbank.php']> Back[/url]"; } } function withdraw() { global db,$ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['crystals']) { echo "You do not have enough banked crystals to withdraw this amount."; } else { $fee=ceil($_POST['withdraw']*3/1000); if($fee > 300000) { $fee=300000; } $gain=$_POST['withdraw']-$fee; $ir['crystals']-=$gain; $db->query("UPDATE users SET crystals=crystalsmoney=money+$gain where userid=$userid"); echo "You ask to withdraw $gain, the teller hands it over after she takes the bank fees. [b]You now have \${$ir['crystals']} in the Crystal Bank.[/b] [url='crystalbank.php']> Back[/url]"; } } $h->endpage(); ?>
-
Yea, Im gonna start learning about them after school. So if I have any more problems. Ill open a new topic! :) Thanks guys
-
If you know PHP, you can code them in. :)
-
Try this: if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } if($_POST['username']) { if($set['regcap_on']) { if(!$_SESSION['captcha'] or $_SESSION['captcha'] != $_POST['captcha']) { unset($_SESSION['captcha']); die("Captcha Test Failed >[url='register.php']Back[/url]"); } unset($_SESSION['captcha']); } if(!valid_email($_POST['email'])) { die("Sorry, the email is invalid. >[url='register.php']Back[/url]"); } if(strlen($_POST['username']) < 4) { die("Sorry, the username is too short. >[url='register.php']Back[/url]"); } $sm=100; if($_POST['promo'] == "Your Promo Code Here") { $sm+=100; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $username=$db->query("SELECT * FROM users WHERE username='{$username}' OR login_name='{$username}'"); $q2=$db->query("SELECT * FROM users WHERE email='{$_POST['email']}'"); if($db->num_rows($usernameck)) { print "Username already in use. Choose another. >[url='register.php']Back[/url]"; } else if($db->num_rows($q2)) { print "E-Mail already in use. Choose another. >[url='register.php']Back[/url]"; } else if($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again. >[url='register.php']Back[/url]"; } else { $_POST['ref'] = abs((int) $_POST['ref']); $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $q=$db->query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}"); if($db->num_rows($q)) { die("No creating referral multies. Bad dog. >[url='register.php']Back[/url]"); } if($_POST['ref']) { $q=$db->query("SELECT * FROM users WHERE userid={$_POST['ref']}"); $r=$db->fetch_row($q); } $db->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, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); $i=$db->insert_id(); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)"); if($_POST['ref']) { require "global_func.php"; $db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}"); event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c); $db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')"); } print "You have signed up, enjoy the game. > [url='login.php']Login[/url]"; } } else { if($set['regcap_on']) { $chars="123456789abcdefghijklmnpqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!?\\/%^"; $len=strlen($chars); $_SESSION['captcha']=""; for($i=0;$i<6;$i++) $_SESSION['captcha'].=$chars[rand(0, $len - 1)]; }
-
I mean like what kinda information do they store?? Where should I use them??? $txt="HELLO, MWG Foum rocks!"; ^^ That is a variable right?? So anywhere throughout the document if I put ::: echo $txt; HELLO, MWG Forum rocks! ; Would out put where ever I put the echo $txt; Right??
-
yes lol $var_name = value; I know every variable has to start with a $ and then if the name of the variable is 2 words it would be $myTime or $my_time
-
I do not understand why and where I need to use a variable and what it does
-
I am studying PHP, on w3schools.com. I just started earlier, I dont get the variables thing why do I need them what do they do? When do I call them? Why do I call them? Please help Thanks
-
Prisonstruggle was really fun and they were rich off us players haha
-
YOU get to pick thats why mccodesgives you the option
-
it alright nothing to do and all but graphics are ok
-
Can someone plz take the attached picture and take the background out of it for me please
-
go to header.php find $bgcolor = 'FFFFFF'; and change that FFFFFF to what color you want if this done help paste your header.php put the whole copy of your header .php in code tags like type [*code]information here also dont use the * when you type the tags[*/code]
-
$keywords[0] well mabe its because that 0 needs to be changed to the keywprds you have? Just a guess though im not a coder or nothing lol I havent learn PHP yet
-
Agree with Danny Plus I see its prison based but I do not see anything prison related all guns like no shanks telephone cords coat hangers nuttin like it
-
1) The top fighter mod-I have been wanting this forever: Say there is a president and he would be the player with the top stats. 3 runner ups(candidates). To become president you have to attack him and win, so you need the highest stats. To become 1 of the 3 candidates, you need to be able to attack one of them and win aswell. Every Sunday, The top 3 candiadtes get 250 crystals. Every Sunday, The President gets 1000 crystals. The president could display on every page(in the header.php) like this Current President: USERNAME 2)The Sweet Shop A sweet shop like the one on http://www.torncity.com . I would like one of these so my players can get some money and a candy item depending on the crime and go and sell at the sweet shop for a certain price. Feedback Please or If you have any add-on ideas please say them here, you never know these could get made!! Thanks, GUCCI