bladewolf2010 Posted June 13, 2010 Share Posted June 13, 2010 90-95 <table cellspacing=1 class='table'><tr style='background:gray;'><td align=center class='h'>Gang Announcement</td></tr> <tr><td bgcolor='#DDDDDD'>{$gangdata['gangAMENT']}</td></tr></table> [b]Last 10 Gang Events[/b] "; $q=$db->query("SELECT * FROM gangevents WHERE gevGANG={$ir['gang']} ORDER BY gevTIME DESC LIMIT 10"); print "<table width=75% cellspacing=1 class='table'><tr style='background:gray;'><th>Time</th><th>Event</th></tr>"; while($r=$db->fetch_row($q)) Error Fatal error: Call to a member function query() on a non-object in /home/*********/public_html/yourgang.php on line 93 NEW 50-60 case "warview": gang_warview(); break; case "staff": gang_staff(); break; case "leave": gang_leave(); break; Error Fatal error: Call to undefined function gang_staff() in /home/*******/public_html/yourgang.php on line 55 Help if you can Please no flaming, I know i'm a noob and it's prob a simple error but I don't know >.< Quote Link to comment Share on other sites More sharing options...
Danny696 Posted June 13, 2010 Share Posted June 13, 2010 global $db; Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted June 13, 2010 Author Share Posted June 13, 2010 Thanks, Could you help me with the other error? Quote Link to comment Share on other sites More sharing options...
Danny696 Posted June 13, 2010 Share Posted June 13, 2010 undefined function. How hard can that be: [lmgtfy]define: undefined[/lmgtfy] && [lmgtfy]php undefined function error[/lmgtfy] Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted June 13, 2010 Author Share Posted June 13, 2010 ?( Quote Link to comment Share on other sites More sharing options...
Diesl Posted June 14, 2010 Share Posted June 14, 2010 He means you have no function called game_staff() Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted June 14, 2010 Author Share Posted June 14, 2010 function gang_staff() { global $db,$ir,$c,$userid,$gangdata,$mr; if($gangdata['gangPRESIDENT'] == $userid || $gangdata['gangVICEPRES'] == $userid || $userid==1 || $mr['gmUSER'] == $userid) { switch($_GET['act2']) { case "idx": gang_staff_idx(); break; case "apps": gang_staff_apps(); break; case "vault": gang_staff_vault(); break; case "vicepres": gang_staff_vicepres(); break; case "pres": gang_staff_pres(); break; case "upgrade": gang_staff_upgrades(); break; case "declare": gang_staff_wardeclare(); break; case "surrender": gang_staff_surrender(); break; case "viewsurrenders": gang_staff_viewsurrenders(); break; case "crimes": gang_staff_orgcrimes(); break; case "massmailer": gang_staff_massmailer(); break; case "desc": gang_staff_desc(); break; case "ament": gang_staff_ament(); break; case "name": gang_staff_name(); break; case "tag": gang_staff_tag(); break; case "managers": gang_staff_managers(); break; case "setmanager": gang_staff_setmanager(); break; case "delmanager": gang_staff_delmanager(); break; case "masspayment": gang_staff_masspayment(); break; default: gang_staff_idx(); break; } } else { print "Get out of here j00 cheater."; } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.