Gucci Mane
Members-
Posts
207 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Gucci Mane
-
Hi all, As you all know I am trying to learn PHP, lol, I am struggling with loops and arrays. If you know any mods that contain good examples please link me the url. I will try to understand it better by looking at it. Also, if your really good and dont mind helping me understand them, please add me on msn. My msn addy is [email protected] Thanks
-
Thats true. lol xD Also you would have to do something to make the item non-tranferrable as you said liscense you have to make it no transferrsable Good luck with this, your probbaly more experienced than me with stuff like coding so good luck
-
Tell me the error and ill try my bets please thanks
-
I am new to php so this is probably a stupid question lol but $stats=array( "energy" => "Energy", "fatigue" => "Fatigue", "will" => "Will", "brave" => "Brave", "hp" => "Health", "strength" => "Strength", "agility" => "Agility", "guard" => "Guard", "labour" => "Labour", "IQ" => "IQ", "hospital" => "Hospital Time", "jail" => "Jail Time", "money" => "Money", "crystals" => "Crystals", "cdays" => "Education Days Left", "bankmoney" => "Bank money", "cybermoney" => "Cyber money", "crimexp" => "Crime XP", "fatigue" => "Fatigue"); why did you put "fatigue" => "Fatigue", twice? Why is the last one like this "fatigue" => "Fatigue");? shouldnt it be a , instead pf ;
-
@ redex - I was using my email ;) it just wouldnt let me login but it does now Nice game
-
Did you find it, if not im gonna try to do it lol for fun That will help practice coding :)
-
I perosnally think that The train button already trains all energy in whichever sats you choose but mabe I could help more If I new how your gym worked, post some screens please
-
Ok, ill edit it now. Also, it goes over the max energy, health, and will, and brave. lol thats why its donators if someone wants it to not then ill post that version to I can make it not go over the maxs ;)
-
No, but I have problems logging in
-
I dont know you. but this site could use some more talent ;) Welcome back!!
-
I would might like this
-
yea man I put all the snacks in a table the is there so I dont have 2 on each line and the tr is because I was closing the row each snack has its on row. I will take screenshots soon ;)
-
Curts mod updated by Gucci Mane REPLACE your spy.php with this one <?php //Curt200518's mod //updated by Gucci Mane on 24-11-2009 //Do NOT remove this copyright include "globals.php"; $q=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $odata=$db->fetch_row($q); $_GET['ID'] = abs((int) $_GET['ID']); if ($_GET['ID'] == "") { echo " THAT PERSON DOES NOT EXSIST."; return; } if ($_GET['ID'] == $ir['userid']) { echo " WHY WOULD YOU SPY ON YOURSELF ? "; return; } if ($_GET['ID'] != $odata['userid']) { echo " THAT PERSON DOES NOT EXSIST."; return; } echo "<h1> Spying on {$odata['username']} </h1><hr>"; $cost = $odata['level'] * 1000; ## COST TO SPY ( $1000 * level) echo " It will cost you \$ {$cost} to spy on {$odata['username']} "; echo " "; echo "Do you wanna spy ?"; echo " "; echo "<form method='POST'> <input type='hidden' name='spy' value='spy'> <input type='submit' value='SPY'> </form> "; if ($_POST['spy']) { $cost = $odata['level'] * 1000; if ($cost > $ir['money']) { echo " You do not have enough money to spy on {$odata['username']}. [url='viewuser.php?u={$_GET['] Back to Profile [/url]"; } else { $query1 = sprintf("UPDATE `users` SET money = money - %u WHERE `userid`= %u", $cost, $userid); $db->query($query1); $strCHANCE = rand(1,2); if ($strCHANCE == 1) { echo "STRENGTH : {$odata['strength']} "; } else { echo "STRENGTH : ?????? "; } echo " "; $spdCHANCE = rand(1,2); if ($spdCHANCE == 1) { echo "SPEED : {$odata['agility']} "; } else { echo "SPEED : ?????? "; } echo " "; $defCHANCE = rand(1,2); if ($defCHANCE == 1) { echo "DEFENSE : {$odata['guard']} "; } else { echo "DEFENSE : ?????? "; } echo " "; $bankCHANCE = rand(1,2); if ($bankCHANCE == 1) { if ($odata['bankmoney'] == -1) { echo "BANK : NO BANK ACCOUNT "; } else { echo "BANK : \$ {$odata['bankmoney']} "; } } else { echo "BANK : ?????? "; } echo " "; $pointsCHANCE = rand(1,2); if ($pointsCHANCE == 1) { echo "POINTS : {$odata['crystals']} "; } else { echo "POINTS : ?????? "; } echo" "; $equippedwCHANCE = rand(1,2); if ($equippedwCHANCE == 1) { $q=$db->query("SELECT * FROM items WHERE itmid={$odata['equip_primary']}"); $itm=$db->fetch_row($q); echo "Equipped Primary Weapon : {$itm['itmname']} "; } else { echo "Equipped Primary Weapon : ?????? "; } echo " "; $equippedsCHANCE = rand(1,2); if ($equippedsCHANCE == 1) { $q=$db->query("SELECT * FROM items WHERE itmid={$odata['equip_secondary']}"); $itm=$db->fetch_row($q); echo "Equipped Secondary Weapon : {$itm['itmname']} "; } else { echo "Equipped Secondary Weapon : ?????? "; } echo " "; $equippedaCHANCE = rand(1,2); if ($equippedaCHANCE == 1) { $q=$db->query("SELECT * FROM items WHERE itmid={$odata['equip_armor']}"); $itm=$db->fetch_row($q); echo "Equipped Armor : {$itm['itmname']} "; } else { echo "Equipped Armor : ?????? "; } } } $h->endpage(); ?>
-
This is my first mod ever Please leave feedback smachine.php <?php /*----------------------------------------------------- Mod Name: Snack Machine Made For: Mc Codes v2 Made By: Gucci Mane Made On: 23-11-2009 Posted On: Dev-Forum & MakeWebGames Please do NOT redistribute Please do NOT delete this copyright Sniko's "My Pub" mod (posted on Dev-Forum.net) helped with my struggles and also helped get me started -----------------------------------------------------*/ @include(DIRNAME(__FILE__) . '/globals.php'); echo "<h1>The Snack Machine</h1>"; function error($error) { echo "$error"; } if($ir['donatordays']<=0) { echo "This a donators only area, sorry."; } else { if(isset($_POST['snickers'])) { if($ir['money']<500000) { $more=$ir['money']-500000; $more=abs($more); error('You do not have enough money to purchase this item!'); echo " You need \${$more} more"; } if($ir['money']>500000) { $eplus=$ir['maxenergy']/2; echo "You quickly attack the snickers bar, and feel a little entergetic afterwards!"; $db->query("UPDATE users SET money=money-500000 WHERE userid=$userid"); $db->query("UPDATE users SET energy=energy+$eplus WHERE userid=$userid"); } } if(isset($_POST['mpie'])) { if($ir['money']<500000) { $more=$ir['money']-500000; $more=abs($more); error('You do not have enough money to purchase this item'); echo " You need \${$more} more"; } if($ir['money']>500000) { $bplus=$ir['maxbrave']/2; echo "You quickly attack the Moon Pie, and feel a little braver afterwards!"; $db->query("UPDATE users SET money=money-500000 WHERE userid=$userid"); $db->query("UPDATE users SET brave=brave+$bplus WHERE userid=$userid"); } } if(isset($_POST['milkduds'])) { if($ir['money']<500000) { $more=$ir['money']-500000; $more=abs($more); error('You do not have enough money to purchase this item'); echo " You need \${$more} more"; } if($ir['money']>500000) { $wplus=($ir['maxwill']/2); echo "You quickly attack the box of milkduds, and feel a little happier afterwards!"; $db->query("UPDATE users SET money=money-500000 WHERE userid=$userid"); $db->query("UPDATE users SET will=will+$wplus WHERE userid=$userid"); } } if(isset($_POST['pshake'])) { if($ir['money']<500000) { $more=$ir['money']-500000; $more=abs($more); error('You do not have enough money to purchase this item'); echo " You need \${$more} more"; } if($ir['money']>500000) { $hplus=($ir['maxhp']/2); echo "You quickly drink up the protein shake, and feel a little healthier afterwards!"; $db->query("UPDATE users SET money=money-150 WHERE userid=$userid"); $db->query("UPDATE users SET hp=hp+$hplus WHERE userid=$userid"); } } else { echo " <form action='smachine.php' method='POST'> <table cell padding='2' spacing='1' border='5' color='blue' width='250px'> <th>Item</th> <th>Buy</th> <tr> <td>[url='#'][b]Snickers Bar[/b][/url]</td> <td><input type='submit' value='Order!' name='snickers'></td></tr> <tr> <td>[url='#'][b]Moon Pie[/b][/url]</td> <td><input type='submit' value='Order!' name='mpie'></td></tr> <tr> <td>[url='#'][b]Milkduds[/b][/url]</td> <td><input type='submit' value='Order!' name='milkduds'></td></tr> <tr> <td>[url='#'][b]Protein Shake[/b][/url]</td> <td><input type='submit' value='Order!' name='pshake'></td></tr> </table> </form>"; } } $h->endpage(); ?>
-
LOL making your own languages you know how hard and time consuming it would be? Before you did all that I could learn PHP, ASP, JS, XML and all lol
-
Sounds like Chicka has had past experience with this. LOL :) Jk
-
I know the following: - Syntax - Including (Thanks to Danny) - Variables - Strings - If.....Else Statement
-
I am NOT a coder but I think it is like this: $query $db->query(" bla blah blah");
-
Hi guyz, I am looking for some extra help on my trip in learning PHP. Is there anyway anyone could please help me by adding me on msn ([email protected]) to help me learn please. I have team viewer as well if we could do some things thru there. P.S. Looking for to talking to you :) Thanks, Gucci Mane
-
get paid hosting add me on msn ill tell you :) [email protected]
-
[align=center]To make a nav bar like this do I need to download the software??[/align]
-
possible Items shown in veiwuser(missing something?)
Gucci Mane replied to Mcfarlin's topic in General Discussion
$inv=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_userid={$r['userid']} ORDER BY i.itmtype ASC"); if ($db->num_rows($inv) == 0) { print "User has no items"; } else { print "<table width=75% class=\"table\" border=\"0\" cellspacing=\"1\">"; $lt=""; while($i=$db->fetch_row($inv)) { if($lt!=$i['itmtypename']) { $lt=$i['itmtypename']; print "\n<tr><td>[b]{$lt}[/b]</td></tr>"; } if ($i['inv_qty'] > 1) print"</td><td>[img=itmpics/{$i[]"; } } $h->endpage(); ?> -
How did you make the nav bar on this site??
-
possible Items shown in veiwuser(missing something?)
Gucci Mane replied to Mcfarlin's topic in General Discussion
well do you have item pics? :) -
ok is guest bookl and authenticate hard to make? Could I use the mccodes authenticate??