Jambomb Posted January 23, 2009 Share Posted January 23, 2009 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 Quote Link to comment Share on other sites More sharing options...
gurpreet Posted January 23, 2009 Share Posted January 23, 2009 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. Quote Link to comment Share on other sites More sharing options...
KiX Posted January 23, 2009 Share Posted January 23, 2009 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 Quote Link to comment Share on other sites More sharing options...
KiX Posted January 26, 2009 Share Posted January 26, 2009 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 Quote Link to comment Share on other sites More sharing options...
SaMz Posted February 28, 2009 Share Posted February 28, 2009 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 Quote Link to comment Share on other sites More sharing options...
avguste Posted March 2, 2009 Share Posted March 2, 2009 Re: [mccode v2] Attack :) I will test that later this week Quote Link to comment Share on other sites More sharing options...
avguste Posted March 3, 2009 Share Posted March 3, 2009 Re: [mccode v2] Attack :) So far seems to be working very well Good job Quote Link to comment Share on other sites More sharing options...
Strats Posted April 7, 2009 Share Posted April 7, 2009 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 Quote Link to comment Share on other sites More sharing options...
Danny696 Posted April 9, 2009 Share Posted April 9, 2009 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. Quote Link to comment Share on other sites More sharing options...
Strats Posted April 19, 2009 Share Posted April 19, 2009 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. Quote Link to comment Share on other sites More sharing options...
Galahad Posted June 7, 2009 Share Posted June 7, 2009 Re: [mccode v2] Attack :) Very nice mod +1 like the idea where you took out hospitalize,mug & leave. :lol: Quote Link to comment Share on other sites More sharing options...
weidtman Posted June 11, 2009 Share Posted June 11, 2009 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. Quote Link to comment Share on other sites More sharing options...
Ghostriders-oldnick Posted June 11, 2009 Share Posted June 11, 2009 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 ! Quote Link to comment Share on other sites More sharing options...
Danny696 Posted June 11, 2009 Share Posted June 11, 2009 Re: [mccode v2] Attack :) i want to make it do when you attack someone you use primary and they use there seconday weapons if there a way that this could be done? Quote Link to comment Share on other sites More sharing options...
Danny696 Posted June 21, 2009 Share Posted June 21, 2009 Re: [mccode v2] Attack :) any one? Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted June 22, 2009 Share Posted June 22, 2009 Re: [mccode v2] Attack :) http://criminalexistence.com/ceforums/i ... ic=28218.0 Quote Link to comment Share on other sites More sharing options...
joker313 Posted August 20, 2010 Share Posted August 20, 2010 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 Quote Link to comment Share on other sites More sharing options...
Eternal Posted August 21, 2010 Author Share Posted August 21, 2010 haa This script is way old. Quote Link to comment Share on other sites More sharing options...
Artemis Posted March 22, 2011 Share Posted March 22, 2011 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? Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted March 23, 2011 Share Posted March 23, 2011 Dont worry about the OP's permission. Wasnt his code to begin with its taken from GRPG. This is a one click attack code. Mc2 already comes with an attack with those options. Quote Link to comment Share on other sites More sharing options...
Artemis Posted March 23, 2011 Share Posted March 23, 2011 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 :) Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted March 23, 2011 Share Posted March 23, 2011 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 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.