
Brad
Members-
Posts
173 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Brad
-
Thats honor award
-
yeah it will take a while as im new to coding php and it is big
-
Different way of going about 'User Display Pictures'.
Brad replied to Djkanna's topic in Free Modifications
PHP Version: 5.2.13 -
cheers jordan and renkia cause i got round to learn codes i making a big mod soon 15% done
-
Different way of going about 'User Display Pictures'.
Brad replied to Djkanna's topic in Free Modifications
how do i fix it or can someone -
Different way of going about 'User Display Pictures'.
Brad replied to Djkanna's topic in Free Modifications
i did that is got rid of something but still. this when i upload it Warning: preg_match() [function.preg-match]: Unknown modifier 't' in /home/street/public_html/preferences.php on line 125 Error: That is not an image! Fatal error: Call to undefined function Error() in /home/street/public_html/preferences.php on line 21 And this when i look on my user after i uploaded it Warning: getimagesize(userdps/test.gif) [function.getimagesize]: failed to open stream: No such file or directory in /home/street/public_html/viewuser.php on line 101 Error: Picture cannot be displayed -
what do u want me to do to change it
-
Ok these are my game rule but you can edit the rules but this is the layout i know im new to coding php so im doing some basics and xD. Replace you gamerules.php with this. <?php include "globals.php"; //made by hms from MWG forums // do not remove print <<<EOF <h1>{$set['game_name']} Rules</h1> Welcome to {$set['game_name']} Rules, we hope that you will follow. In {$set['game_name']}, you will have to follow these rule or it will be fed time but you are free to chose what you do but make sure it dont go against the rules.</p> <h3>Guide</h3> [url="#accountmult"]Account Mult[/url] [url="#account"]Account[/url] [url="#age"]Age and Block[/url] [url="#fight"]Attacking[/url] [url="#preferences"]Preferences[/url] [url="#pic"]Picurs[/url] [url="#spam"]Spamming[/url] [url="#ad"]Advertise[/url] [url="#staff"]Staff[/url] <a name="accountmult"><h4>Account Ip</h4></a> [list=1] <u>Mults accounts</u></p> You as a player is only allowed one account per home. If you have more than one person playing this game just mail admin and they will sort out something. 1. By admin letting you have more than one account a ip will have some rule for that. 2. You are not allowed to send iteams money or crystals. 3. You can not trade or anything. 4. You will have to be in the same gang to stop attacking each other. 5. You are not allowed to attack eachother. If you dont follow the above when you have been allowed another account for you brother or home member you will be fedded. 1 warning 5 day fed for both accounts. 2 warning 30 day fed for both accounts. 3 warning 100 day fed for both accounts. 4 warning 1000 day fed for both accounts. 5 warning both accounts deleted. [/list] <a name="account"><h4>Your Account</h4></a> [list=1] You are responsible for whatever happens on your account. 1. Dont give you password to anyone. 2. Dont tell anyone anything about you account. 3. You can not selld your account. 4. Trade your account. 5. Your account can only have one owner. 6. No robot clicking for you. 1 warning 5 day fed. 2 warning 30 day fed. 3 warning 100 day fed. 4 warning 1000 day fed. 5 warning account deleted. [/list] <a name="age"><h4>Age and block.</h4></a> Keep it PG-13 Children play this game so watch you swearing so it you want to swear put two * instead of to letters in the word. Dont do any sexial acts. 1 waring 50 day mail ban. 2 waring account deleted. <a name="pic"><h4>Picures</h4> [list=1] You may NOT have any picures of naked women/men. You may NOT have any picures of any harsh comments. 1 waring ask to remove. 2 waring Account deleted. [/list] <a name="spam"><h4>Spamming</h4></a> [list=1] You will not spam staff mailbox. You will not spam user mailbox. 1 waring only 1000 day mailban. You will not spam forums. <br You will not spam forum threads. 1 waring only 1000 day forum ban. [/list] <a name="ad"><h4>Advertise</h4></a> [list=1] We know you play other game dont tell people them here 1 waring 50 day fed. 2 waring account deleted. [/list] <a name="staff"><h4>Staff</h4></a> [list=1] If any staf member is bothering just mail admin and they will sort them out. [/list] EOF; $h->endpage(); ?> Screenshots [attach=1489][/attach]
-
Different way of going about 'User Display Pictures'.
Brad replied to Djkanna's topic in Free Modifications
Bug That when i uploaded the inmage and it is a .gif Warning: move_uploaded_file(userdps/test.gif) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/street/public_html/preferences.php on line 142 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpM0sNGG' to 'userdps/test.gif' in /home/street/public_html/preferences.php on line 142 Success; Your Display picture has been changed Fatal error: Call to undefined function Error() in /home/street/public_html/preferences.php on line 21 Then i went on view users and it come up with Warning: getimagesize(userdps/test.gif) [function.getimagesize]: failed to open stream: No such file or directory in /home/street/public_html/viewuser.php on line 101 Error: Picture cannot be displayed -
i have looked up to page 50 there no shoutboxes with smileys but if someone can post a shoutbox i will edit it with smileys.
-
can someone help
-
Can someone put a shoutbox here with smileys i need one can someone help.
-
This is my lotto. Say if there is some bugs. No bad comments This lotto has a very unlikely chance you will win 1-400 chance lol you can change it. Call this file lotto.php <?php include "globals.php"; //lotto mod if($ir['money']< 20001) { print "You need at least £2000 to play."; $h->endpage(); exit; } if($_POST['ticket']) { if($ir['money']< $_POST['ticket']*3) { print "You don't have the correct amount of money."; $h-endpage(); exit; } $rand=(int) rand(1,400); $rand2=(int) rand(1,400); $money=$_POST['ticket']*3; if($rand == $rand2) { print "You won! You have been given $money by the country!"; $db->query("UPDATE users SET money=money+$money WHERE userid=$userid",$c); event_add($_POST['ID'],"[url='viewuser.php?u=$userid']{$ir['username']} [{$ir['userid']}][/url] You have won! </a>",$c); } else { print "You lost! Never mind, keep trying. You have lost $money "; $db->query("UPDATE users SET money=money-$money WHERE userid=$userid",$c); event_add($_POST['ID'],"[url='viewuser.php?u=$userid']{$ir['username']} [{$ir['userid']}][/url] You have lost! </a> ",$c); } } else { print "Want to have a chance of winning the lottery? You will win but you may lose Its $2000 per tiket. "; echo "<form action='lotto.php' method='post'> Tickets :<input type='text' name='ticket' value='0'> <input type='submit' value='Get ticket!'> </form>"; } $h->endpage(); ?>
-
i think i just fixed it check it now just edited it
-
ok thanks mate i will have a look
-
mate take the link from dominion he said cause that a good 3 ingame collom
-
This may be a bit pointless but i like it so i made it and i want to post here Can you not do bad comment It is near the same as my last mod just a bit diff. My second mod What and you need to do & what it does It will add energy to other users any user you want Wrll you have to create an iteam in the code it is iteam id 2 but you can have it as any iteam id you want if you edited it. Any bugs post Make a file call e_add.php <?php include "globals.php"; //Mod created by HMS from MWG forums $gid = 2; //Iteam Id print'<h2> Add Energy To Other Users </h2>'; $query=$db->query("SELECT `inv_itemid` FROM `inventory` where `inv_itemid` = $gid && `inv_userid` = $userid"); $i=$db->fetch_row($query); if(!$i['inv_itemid'] == $gid) { echo "Invalid Item"; exit; } if(!isset($_POST['ID'])) { echo "<form action='e_add.php' method='post'> User id: <input type='text' name='ID' /> User: ".user_dropdown($c,'user')." <input type='submit' value='Upgrade energy NOW' /> </form>"; } else { $_POST['ID'] = abs(floatval($_POST['ID'])); $maxMembs = $db->fetch_row($db->query("SELECT COUNT(`userid`) AS `u` FROM `users`")); if($_POST['ID'] > $maxMembs['u']) { echo "Invalid user!"; $h->endpage(); } $db->query("UPDATE `users` SET `energy`=100 WHERE (`userid` = ".$_POST['ID'].") ",$c); event_add($_POST['ID'],"[url='viewuser.php?u=$userid']{$ir['username']} [{$ir['userid']}][/url] has given you full energy you should be greatful </a> ",$c); item_remove($userid, $gid, 1); echo "You have just given {$ir['username']} full energy."; } $h->endpage(); ?>