bennyh Posted July 20, 2009 Posted July 20, 2009 Hi all, Just wonderng if anyone could help me. I need a code so gang presidents cant leave their gang while they are president so they have to make someone else president thats in the gang. Its for McCodes V1 Thanks in advance Bennyh Quote
killer60 Posted July 20, 2009 Posted July 20, 2009 Re: Any chance for 10 seonds of your time? dont know if u can do that but if u have the v2 version of gangs you could convert to v1 that would work Quote
Faz` Posted July 20, 2009 Posted July 20, 2009 Re: Any chance for 10 seonds of your time? Post up your gang file, I don't have v1. Quote
Feky Posted July 20, 2009 Posted July 20, 2009 Re: Any chance for 10 seonds of your time? Hi all, Just wonderng if anyone could help me. I need a code so gang presidents cant leave their gang while they are president so they have to make someone else president thats in the gang. Its for McCodes V1 Thanks in advance Bennyh you mean a delete function if the president were you leave the gang without anyone owning the gang then that would just leave an empty gang and post yourgang file so we could have a look. Quote
Faz` Posted July 20, 2009 Posted July 20, 2009 Re: Any chance for 10 seonds of your time? Well, you would check if the gang has more than one person, if so, when the president leaves it could go to the vice president or the highest level person in your gang. If you are the only member, then you get an error. That is how I would go about it, anyone else want to elaborate or have a different idea? Quote
Feky Posted July 20, 2009 Posted July 20, 2009 Re: Any chance for 10 seonds of your time? or you could change the if statement and put a query in so that if the president leaves the gang the gang would get deleted. Quote
bennyh Posted July 20, 2009 Author Posted July 20, 2009 Re: Any chance for 10 seonds of your time? Well that would be good aswell so users can delete their gang but mainly need a code so the president cant leave, the president will need to make someone else the president before they can leave. It wont let me put my code in as its too long Thanks Quote
Faz` Posted July 20, 2009 Posted July 20, 2009 Re: Any chance for 10 seonds of your time? I repeat, but up your gang file. Quote
AlabamaHit Posted July 20, 2009 Posted July 20, 2009 Re: Any chance for 10 seonds of your time? if($gangdata['gangPRESIDENT'] == $ir['userid']) { echo 'Not while you are president.'; exit; } That will stop a president from leaving. Quote
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.