Jump to content
MakeWebGames

Recommended Posts

Posted

Hello,

First I will say I DID NOT make this mod, Richard did in this topic: http://criminalexistence.com/ceforums/index.php?topic=26678.0

He created a Faction system for the Mc Code Lite version that included an armoury. Due to myself and others wanting an armoury as the one posted up lately was 'illegal' I found this, converted it to V2 and tested it. Give Richard a nice comment and a +1 for making the mod, I just converted it to V2.

Run SQL:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Create factions.php:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

  • Replies 50
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Re: [v2] Faction with Armoury

Find in attacklost.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Find in attackwon.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add below:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add into mainmenu.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add into explore.php:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then....

Posted

Re: [v2] Faction with Armoury

Add this into manage_faction.php:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add this function into manage_faction.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Add these links into explore.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

There you go. I'v done this and it works perfectly on my V2 game so it should for you. I know the discussion of the V2 gangs system may be better, but I dont know what the differences are.

Posted

Re: [v2] Faction with Armoury

Grrr......Why is the table in Db faction for V2 it is gangs

Posted

Re: [v2] Faction with Armoury

Not sure am following you?

I'v come across a problem, you can donate fine but when you give to user it doesnt appear in the inventory - It disappears!

Going to have a look after tea incase its something obvious

Posted

Re: [v2] Faction with Armoury

There is no function defined for those 3 links :

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: [v2] Faction with Armoury

 

There is no function defined for those 3 links :

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Give money - Works, just tried it

Manage Apps - Works, just tried it

Kick - Works just tried it

Posted

Re: [v2] Faction with Armoury

The, you don't have all lines in manage_faction.php

Here, those 3 lines missing.

> Give Money / Points

Fatal error: Call to undefined function give_vault() in C:\wamp\www\game\manage_faction.php on line 32

> Manage Apps

Fatal error: Call to undefined function app_manage() in C:\wamp\www\game\manage_faction.php on line 52

> Kick Member

Fatal error: Call to undefined function kick_member() in C:\wamp\www\game\manage_faction.php on line 56

Posted

Re: [v2] Faction with Armoury

Hmm, here are the functions for the above:

Kick

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

App manage

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Give

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

That what you need?

Posted

Re: [v2] Faction with Armoury

Yes, thankyou. +1 from me! :)

And one more thing :P

Leave Faction <

Fatal error: Call to undefined function leave_faction() in C:\wamp\www\game\manage_faction.php on line 36

Posted

Re: [v2] Faction with Armoury

Leave faction

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Thanks, let me know if it all works and if anyone can solve the problem I have were it does not give items out

Posted

Re: [mccode v2] Faction with Armoury

Great mod!

Going to look to add this to my game tonight as my gang fuctions have a few issues, so i am going to try use this instead :mrgreen:

  • 2 months later...
Posted

Re: [mccode v2] Faction with Armoury

Fatal error: Call to a member function real_escape_string() on a non-object in (...) manage_faction.php on line 110

 

Anyone got a fix for this?

Posted

Re: [mccode v2] Faction with Armoury

Fatal error: Call to a member function mysql_real_escape_string() on a non-object in (...)\manage_faction.php on line 110

Still same problem.

~~

Oh, never mind. I found a fix.

Posted

Re: [mccode v2] Faction with Armoury

Now, this pops up everytime i try to open a link in manage_factions.php

"You are not authorised to access this page."

And still, I am the factions leader. Help, please?

Ps. your fix worked, Karlos, I just fixed it wrong, :P I gave you force.

  • 4 months later...
Posted

Re: [mccode v2] Faction with Armoury

Could someone post the full manage faction? And the working attackwon and attacklost.php

I also noticed you can not declare war...

Posted

Re: [mccode v2] Faction with Armoury

I have sorted the above, but found another problem, Best chain does not work i.e the count doesn't go up it just stays at zero, there is also no time limit for you to attack i.e current chain never resets back to zero.

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...