Guest Sniko` Posted July 3, 2009 Posted July 3, 2009 My first ever modification on this forum was ammo, i decided to update for a game i am coding for. This is a shop where you buy turns to attack turns_shop.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add the link in explore You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add in header You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now in attack.php 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. Now in attackwon.php 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. SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. change 30 to any number you want them to start off with Thanks Sniko Quote
eido Posted July 3, 2009 Posted July 3, 2009 Re: [V2] Attacking Turns Shop Like this idea. Good as usual. +1 for you buddy. Quote
eido Posted July 3, 2009 Posted July 3, 2009 Re: [V2] Attacking Turns Shop There is a problem with this: When the members start of with some atk turns and they try and attack it say's they have none??? Same still when they buy the turns. Quote
shrek1609 Posted July 4, 2009 Posted July 4, 2009 Re: [V2] Attacking Turns Shop try this... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. $r['attak_turns'] <= 1 is checking the turns of the member who is being attacked not the one attacking... should be $ir['attak_turns'] <= 1 Quote
eido Posted July 4, 2009 Posted July 4, 2009 Re: [V2] Attacking Turns Shop Correction it shouldn't be ($ir['attk_turns'] <=1 Check the sql you need to put in it say's attk_turns Here is the code for anyone who wants it: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
eido Posted July 4, 2009 Posted July 4, 2009 Re: [V2] Attacking Turns Shop There is Another problem: It doesn't take the attack turn off when you attack. Quote
shrek1609 Posted July 4, 2009 Posted July 4, 2009 Re: [V2] Attacking Turns Shop i've not installed this so only helping by looking at the coding... and you answered your own problem here... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. don't you think You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. should match one another ? Quote
Lithium Posted July 4, 2009 Posted July 4, 2009 Re: [V2] Attacking Turns Shop don't you think You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. should match one another ? The problem is people don't spend time looking at the code. copy/paste and its all done! then complain it doesn't work :) Quote
Guest Sniko` Posted July 4, 2009 Posted July 4, 2009 Re: [V2] Attacking Turns Shop Sorry for the typo's with the attk_turns = attak_turns-1 i apologize Quote
shrek1609 Posted July 4, 2009 Posted July 4, 2009 Re: [V2] Attacking Turns Shop Don't apologise you've been good enough to share an idea and modification, personally i read the code through on any mod prior to installing it and any mods i have installed i've quite often re-modded them to fit my game... At the end of the day you posted it for free, the bugs were spelling errors and pretty simple to spot... Quote
weewooz Posted August 13, 2009 Posted August 13, 2009 Re: [V2] Attacking Turns Shop so what works and what done lol did the first post get updated sniko mate or? Quote
Dukky Posted August 14, 2009 Posted August 14, 2009 Re: [V2] Attacking Turns Shop you need to add the -1 attack turns in the other attack files Quote
weewooz Posted August 14, 2009 Posted August 14, 2009 Re: [V2] Attacking Turns Shop sorry what dont matter ty anyways codes often end like this on here not finished lol although its a good mod ill correct myself 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.