elessar Posted November 10, 2007 Share Posted November 10, 2007 Im wondering how to block people from being kicked from a gang untill they have been in it 2 days. I was able to block them from leaving but cant quite get the kicking blocked Quote Link to comment Share on other sites More sharing options...
KyleCrispy Posted November 11, 2007 Share Posted November 11, 2007 Re: A little help? ok well if($ir['days in gang']<2) { die("this user can not be kicked out of the gang he has to be in for more than 2 days"); } change the days in gang for what ever the thing is called mosted probaly Quote Link to comment Share on other sites More sharing options...
elessar Posted November 11, 2007 Author Share Posted November 11, 2007 Re: A little help? That will judge by the person trying to do the kicks daysingang Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted November 11, 2007 Share Posted November 11, 2007 Re: A little help? That will judge by the person trying to do the kicks daysingang Indeed... Kyle tends to post before he thinks.. Maybe try... Find: $kdata=mysql_fetch_array($q); Under add: $chec=mysql_query("SELECT * FROM users WHERE gang={$kdata['gang']} AND userid={$_GET['ID']}", $c); $check=mysql_fetch_array($chec); if ($check['daysingang']<2) { echo 'You cannot kick someone if they have been in the gang less then 2 days'; $h->endpage(); exit; } Though im not sure if "daysingang" is right. Also its not been tested. But hopefully it will work. :wink: Quote Link to comment Share on other sites More sharing options...
elessar Posted November 11, 2007 Author Share Posted November 11, 2007 Re: A little help? That worked! Thanks a bunch+1 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.