Jump to content
MakeWebGames

Recommended Posts

Posted

Re: [mccode v2] Attack :)

 

to be exact its

 

Parse error: syntax error, unexpected T_VARIABLE in /home/*******/public_html/attack.php on line 1

When i get errors like that i usualy miss out a ; after the variable

mite help :P

Posted

Re: [mccode v2] Attack :)

 

I copied it exactly as u have it. Here is what is in my file...maybe i didnt see the error. Sorry for the disturbance.

 

You're unable to view this code.

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

 

Try this:

 

You're unable to view this code.

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

Posted

Re: [mccode v2] Attack :)

bah! still not working...thanx for all the help guys, but still nothing. It is really odd.

Now I am getting another error.

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/******/public_html/attack.php on line 1

Posted

Re: [mccode v2] Attack :)

ffs, finally got it working lol

It had a bunch of spaces and my php ver did not like that one bit.

Great job on the mod. my users hate it, but we love it..

lol

+1

  • 1 month later...
Posted

Re: [mccode v2] Attack :)

this is great but having an option what to do with them will be much better, i tried but the code is too complicated +1

  • 1 month later...
Posted

Re: [mccode v2] Attack :)

This works great for me that I can see, Only a few little things to change. :lol:

Hey go me I put in a mod right 1st time lol

Posted

Re: [mccode v2] Attack :)

i edeited this a bit called it Lazy Fight And made it a simple one click fight that cost $500 to do and it will not destory the gangs when they get to 0 respect heres my version of the code: all this file lazyfight.php

You're unable to view this code.

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

 

in viewuser.php find

You're unable to view this code.

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

and after add:

You're unable to view this code.

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

  • 2 weeks later...
Posted

Re: [mccode v2] Attack :)

I tried yours Danny I get this message :

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/wrestlin/public_html/lazyattack.php on line 41

Which is :

$error = ($ir['money'] < 500) "You Need At Least $500 To Do A Lazy Fight." : $error;

I am not really sure about that..

 

Eternal , Your mod is real good.

I think you could improve it by making it so when the attack is done you get the choice to hospitalize, mug or leave them.

  • 1 month later...
Posted

Re: [mccode v2] Attack :)

Well gotta say I love this site. I have read and changed more php in the past few days then ever before. This site is very useful for learning.

That being said I here is my first post on this site.

I noticed when using this mod that when you attack someone you do not loose health. It always stood at 100% on my game. Now I'm not very good at php but I did get it to work for me.

This is how I did it. Any advice and changes would be appreciative.

Find:

 

You're unable to view this code.

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

 

Replace with:

 

You're unable to view this code.

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

 

It seems to work in my game. I have tried attacking 25 times and I did not notice an error. Health seems to drop as well.

Hope it was useful to anyone.

Posted

Re: [mccode v2] Attack :)

i love ure mod +1

but could u make a smaller summary pleaSE? .. and post it because if you have a very long fight u can imagine the trouble .. so could u make a complete summary about max 5 lines i would be truely gratefull !

  • 2 weeks later...
  • 1 year later...
Posted

nice mod i added to my game but it gives way too much exp after the attack people will level up fast using this mod on my game i think or its just i dont have active players and my stats can be higher then the players i tested the attack on nice work

  • 7 months later...
Posted

sorry for reviving an old post...

I like this mod as does by Beta team.. but was wondering how (with the original owners permission) do you change it so the outcome has the mug, hospital, leave options?

Posted

it was more the one click and listing of the fight hit for hit that caught my attention..

just didnt like the outcome being without the options..

Thanks for replying :)

Posted

Scroll down the code until you reach the actual fight bit.

Before it runs the query inserting the loser into the hospital add in the options for mug/leave or continue to place them in the hospital

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