Magictallguy Posted May 17, 2013 Posted May 17, 2013 (edited) This mod was requested by Bennyh789 on this topic This can also be found on my site here: http://magictallguy.tk/mods.php?mod=11 Gang House SQLs You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edit creategang.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. Edit yourgang.php Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add above You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find 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. Find the closing brace of the gang_index() function Add below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add above You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Find 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. Find the closing brace of the gang_staff_idx() function Add below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited August 22, 2023 by Magictallguy Updated code Quote
AnonymousUser Posted May 28, 2013 Posted May 28, 2013 gonna have to try this out when i get a chance, nice addon MTG +1 once i've tested it ;) Quote
AnonymousUser Posted May 28, 2013 Posted May 28, 2013 so far i've found a few errors... could be that my server isnt up to date but i know this error is easy fix :D.... be sure to replace your You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
AnonymousUser Posted May 28, 2013 Posted May 28, 2013 also error on line 500.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Warning: printf() [function.printf]: Too few arguments in /home/demonbat/public_html/yourgang.php on line 500 above is line 500... Quote
Magictallguy Posted May 28, 2013 Author Posted May 28, 2013 Replace with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Original code updated Quote
AnonymousUser Posted May 29, 2013 Posted May 29, 2013 after accepting them into the house you get this... QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '((`grrID` = 1) AND (`grrGang` = 1))' at line 1 Query was SELECT `grrUser` FROM `gangRentalRequests` WHEERE ((`grrID` = 1) AND (`grrGang` = 1)) Quote
AnonymousUser Posted May 29, 2013 Posted May 29, 2013 replace line 516 with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. just a little typo error was occurring if its not on that line the just ctrl + f (Find) "wheere" Quote
AnonymousUser Posted May 29, 2013 Posted May 29, 2013 also need links for the other options... the only link is the Gang house... which asks user if they wanna join, and the other is to view requests... i see no link addition for adding the house or upgrading it... Quote
AnonymousUser Posted May 29, 2013 Posted May 29, 2013 less cluttered this way... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. also add link under the view house request You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Djkanna Posted May 29, 2013 Posted May 29, 2013 (edited) More consistent, also pretty sure these house queries, should be using $gangdata['gangHOUSE'] opposed to $gangdata['gangID'] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Pastie cause the highlighter is going to screw it up no doubt. Edited May 29, 2013 by Djkanna Quote
Magictallguy Posted May 29, 2013 Author Posted May 29, 2013 More consistent, also pretty sure these house queries, should be using $gangdata['gangHOUSE'] opposed to $gangdata['gangID'] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Pastie cause the highlighter is going to screw it up no doubt. Thanks for the fixes, I've been way too busy with the family Quote
AnonymousUser Posted June 1, 2013 Posted June 1, 2013 **SUGGESTION** add more "vacancy" slots as to let up to 4 players use same home at same time seeing as the price of the home is set to 10X original amount... or whatever one sets it to along with ability to purchase up to 2 different houses? Quote
AnonymousUser Posted June 9, 2013 Posted June 9, 2013 you forgot to add the gang house to the query for creategang.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 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.