Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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

Posted

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:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...