Jump to content
MakeWebGames

peterisgb

Members
  • Posts

    738
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by peterisgb

  1. wow looks nice aurora, look forward to seeing this
  2. i add this and yet mine still goes over 100% still with that extra bit   function get_mine() { global $ir,$c,$userid,$db; if($ir['mine_exp'] >= $ir['mine_needed']) { $db->query(sprintf("UPDATE users SET mine_level=mine_level+1, mine_exp=0, mine_needed=mine_needed+100, max_power=max_power+1 WHERE userid=%u", $userid)); } }   i tried this but yet not work, any ideas
  3. good mod, tho looking at it is there anyway to add a percentage, i think percentages would be good, its all good saying its gone up bleh amount but what about percentages e.g     iphone $1,000 +$1,500 +$500? %50? Buy Or View would some1 be abel to hep me add this one, i'm sure others woud probs like this to if they use this mod
  4. the ' has been removed, and yh ino its a basic mod but there some people that aint that good, and/or havent though of it but as i am learning i though i woud put some of the work i am doing as i go along
  5. this is only a little mod, but as i aint that good its ok i suppose, but some1 might like it and use it, this allows the gang owner to set level requirements for users wishing to join the gang see on the view gang page before they join to save them putting it in descriptions ? ok open creategang.php and find $name=htmlspecialchars($_POST['name']); $desc=htmlspecialchars($_POST['desc']); $db->query("INSERT INTO gangs VALUES('','$name','$desc','','',0,0,1000,$userid,$userid,5,0,0,'')"); and replace with $name=htmlspecialchars($_POST['name']); $desc=htmlspecialchars($_POST['desc']); $req=htmlspecialchars($_POST['req']); $db->query("INSERT INTO gangs VALUES('','$name','$desc','$req','','',0,0,1000,$userid,$userid,5,0,0,'')"); the save and close, then open yourgang.php and find case "desc": gang_staff_desc(); break; and below add case "req": gang_staff_req(); break; and the link of course below "Change Gang Requirements. " then look for function gang_staff_desc() { global $db,$ir,$c,$userid,$gangdata; if($gangdata['gangPRESIDENT'] == $userid ) { if(isset($_POST['subm'])) { $_POST['vp']=str_replace(array("<", ">", "\n"), array("<", ">", " "), $_POST['vp']); $db->query("UPDATE gangs SET gangDESC='{$_POST['vp']}' WHERE gangID={$gangdata['gangID']}"); print "Gang description changed! <br /> <a href='yourgang.php?action=staff'> Back</a>"; } else { print "Current Description: <br /> {$gangdata['gangDESC']} <br /> <form action='yourgang.php?action=staff&act2=desc' method='post'> Enter the new description.<br /> <br /> <input type='hidden' name='subm' value='submit' /> Desc: <br /> <textarea name='vp' cols='40' rows='7'></textarea> <br /> <input type='submit' value='Change' /></form>"; } } } below that add function gang_staff_req() { global $db,$ir,$c,$userid,$gangdata; if($gangdata['gangPRESIDENT'] == $userid ) { if(isset($_POST['subm'])) { $_POST['vp']=str_replace(array("<", ">", "\n"), array("<", ">", " "), $_POST['vp']); $db->query("UPDATE gangs SET gangREQ='{$_POST['vp2']}' WHERE gangID={$gangdata['gangID']}"); print "Gang Requirements changed! <br /> <a href='yourgang.php?action=staff'>Back</a>"; } else { print "Current Requirements: <br /> {$gangdata['gangREQ']} <form action='yourgang.php?action=staff&act2=req' method='post'> Enter the new requirements.<br /> <input type='hidden' name='subm' value='submit' /> <br /> <textarea name='vp2' cols='40' rows='7'></textarea> <br /> <input type='submit' value='Change' /></form>"; } } } then save that file, then open gangs.php and look for <b>Description: </b> {$gangdata['gangDESC']} below that add <br /><b>Requirements: </b> {$gangdata['gangREQ']} then save that file then import this into your phpmyadmin ALTER TABLE gangs ADD gangREQ text NOT NULL;
  6. fb intergration yh i've google them but i dont see how its dont, like when you register you need toe hdata to go into the db such as like level, money etc, and i cant see how and that, if you could like help me or tell me how to do it, i like learn from being showed
  7. hi, well as i havent seen it on here but yet i think it would be a very good addon for all mccodes, http://developers.facebook.com/docs/guides/web heres the facebook details for the login, well if anyone can help please pm me, thanks
  8. wow, my old account and my old mod wow looking thro the forums is fun, especially when u find old accounts like this one, and this mod, well i remember making this mod, tho its alot more complexed now, i might upload the newer version of this if anyone wants it
  9. facebook-add-n-other-general-game-help its making no profit at the moment as its still starting and i've only just got the crons workng and bout security i know nothing about that, i've been asking for people to help and get the going n take 50% of the profits it makes but no1 is willing to help
  10. thanks sooooooo much for that, i been trying to get the crons working on my site for months thanks sooooo much.......
  11. ok i have just uploaded a new game to my site http://www.darlek-wars.com/ the are other things on there aswe but i want to get the game going, i want to add the facebook register n facebook login into the site to make the game easier to join etc, the game needs alot of work to which i will get onto that to, but if anyone is willing to help then i'm ok with spittin all the profits made 50% eachway, please PM me, thanks
×
×
  • Create New...