bennyh Posted July 20, 2009 Share 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 Link to comment Share on other sites More sharing options...
killer60 Posted July 20, 2009 Share 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 Link to comment Share on other sites More sharing options...
Faz` Posted July 20, 2009 Share Posted July 20, 2009 Re: Any chance for 10 seonds of your time? Post up your gang file, I don't have v1. Quote Link to comment Share on other sites More sharing options...
Feky Posted July 20, 2009 Share 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 Link to comment Share on other sites More sharing options...
Faz` Posted July 20, 2009 Share 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 Link to comment Share on other sites More sharing options...
Feky Posted July 20, 2009 Share 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 Link to comment Share on other sites More sharing options...
bennyh Posted July 20, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
Faz` Posted July 20, 2009 Share Posted July 20, 2009 Re: Any chance for 10 seonds of your time? I repeat, but up your gang file. Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted July 20, 2009 Share 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 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.