Saha Posted June 15, 2009 Posted June 15, 2009 Re: [mccode v2] Faction with Armoury Right ive added this but my members have asked if there could be a Log like in the gangs mod. Could anyone do this for me ive tried but ended up messing it up, thats what backup's are for :P Quote
Pieces Posted June 15, 2009 Posted June 15, 2009 Re: [mccode v2] Faction with Armoury Right ive added this but my members have asked if there could be a Log like in the gangs mod. Could anyone do this for me ive tried but ended up messing it up, thats what backup's are for :P I am attempting this but I'm not gunna promise anything, I'm a newb to coding so... And does your best chain work? and does the chain end after a period of time? Quote
CrazyT Posted June 15, 2009 Posted June 15, 2009 Re: [mccode v2] Faction with Armoury With mysql_real_escape_string(); in v2 all you got to use is: $db->escape($var); Because v2 has it in the class already. This is from the class file. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Saha Posted June 15, 2009 Posted June 15, 2009 Re: [mccode v2] Faction with Armoury Right ive added this but my members have asked if there could be a Log like in the gangs mod. Could anyone do this for me ive tried but ended up messing it up, thats what backup's are for :P I am attempting this but I'm not gunna promise anything, I'm a newb to coding so... And does your best chain work? and does the chain end after a period of time? Yes i tried using the old one off gang.php and edit the code to fit factions but it didnt seem to work if only life were that simple :roll: Quote
Dimension Posted June 16, 2009 Posted June 16, 2009 Re: [mccode v2] Faction with Armoury Hi everone Im a noob i can not code for my life basicaly can anyone make a organised crime script mod with sql if it needs it. i tired to take the gang one and edit it TO FIT IN WITH THE faction mod but no such luck. if anyone can help feel free lol and im looking for a coder for my website just to code me free version mods anyone feel they can help add me on msn [email protected]. or mail me u can be staff on my game and stuff as a thank you :roll: Quote
Saha Posted June 17, 2009 Posted June 17, 2009 Re: [mccode v2] Faction with Armoury Right i added the attacklost.php fine but am getting errors with attackwon.php i cant figure out what i did wrong and cant find a solution tot he error. attackwon.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Error: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Saha Posted June 17, 2009 Posted June 17, 2009 Re: [mccode v2] Faction with Armoury BUMP Any sollution to my post above?? Quote
Faz` Posted June 17, 2009 Posted June 17, 2009 Re: [mccode v2] Faction with Armoury You might be missing a bracket or something, not too sure. Check around for any missing semi colons, brackets, speech marks etc. Quote
Dimension Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Faction with Armoury can anyone one help me about the oc (organised crime page) like i said i tried to convert the gang one (standard mc codes v2) to work with this mod but no luck can anyone make an Organised Crime script to work with this if ya can post it here please :-D Quote
Saha Posted June 18, 2009 Posted June 18, 2009 Re: [mccode v2] Faction with Armoury When my game is back up ill do it yes its not hard to convert a mod as simpleas Organised Crimes Quote
Dimension Posted June 19, 2009 Posted June 19, 2009 Re: [mccode v2] Faction with Armoury Thanks Saha i apprecitate it ill keep my eyes on this thread hahha lol Thanks and Regards Dimension Quote
LegendFTW Posted December 14, 2010 Posted December 14, 2010 Look im a big noob i dont know anything about PHP how do i do so like on the profile and index i can see faction im in not gang that were on script before Quote
DJShad10 Posted December 15, 2010 Posted December 15, 2010 im sorry i know this is a stupid question.... What is a faction? is it the same thing as a gang? im not completely following the term please explain Thanks Shad Quote
DJShad10 Posted December 15, 2010 Posted December 15, 2010 Parse error: syntax error, unexpected $end in .../manage_faction.php on line 776 what do i do????please help me :( Thanks Shad Quote
sniko Posted December 15, 2010 Posted December 15, 2010 @Shad; Find ?> and add another } -sniko Quote
Daron Posted April 23, 2011 Posted April 23, 2011 theres a problem with line 39 in factions.php it says iys expecting a ']' Quote
lucky3809 Posted April 23, 2011 Posted April 23, 2011 (edited) it means a bracket is missing or there is double... such as the error $r[space'] in which the ' is missing which will give you that error or $r[['space'] will also give you that error it should be $r['space'] NOTE: didnt look at the script so 'space' is made up in the example I gave its not an actual name given in the script... Â This is the part you should examine on that line... print "<tr><td><a href="http://factions.php?step=profile&ID= problem 1... {$r[" target=_blank"> Â <h3>{$r['faNAME]}</h3></a></td><td>"; $membs = sprintf("SELECT * FROM `users` WHERE faction = %u", mysql_real_escape_string($r['faID'])); $mems = mysql_query($membs); print mysql_num_rows($mems)."</td> <td>{$r['faREPUTATION']}</td> <td> problem 2... </td></tr>"; } Edited April 23, 2011 by lucky3809 Quote
rulerofzu Posted April 23, 2011 Posted April 23, 2011 The code has had the <img src= removed and replaced with bbcode Quote
a_bertrand Posted April 23, 2011 Posted April 23, 2011 well... he didn't used the [noparse] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Daron Posted April 23, 2011 Posted April 23, 2011 well can somebody take a glance at line 39 on factions.php because i been trying correct it but no luck. Quote
rulerofzu Posted April 23, 2011 Posted April 23, 2011 print "<tr><td><a href="http://factions.php?step=profile&ID={$r[" target=_blank"><h3>{$r['faNAME]}</h3></a></td><td>"; {$r['userid']} perhaps? never used it so not sure but its calling the users table in the query above Dont forget to change the quotes :D Quote
Daron Posted April 23, 2011 Posted April 23, 2011 yea i been remembering the quote thing you taught me, it actually been helping fix alot of things lately. Quote
Daron Posted April 23, 2011 Posted April 23, 2011 (edited) O & what u said did fix that one error, but theres alot more, but i can handle these other ones because they are problems i already dealt with before with the help of u, djkanna, sniko, & analog :) when im done & its working i'll post my version on here. EDIT: except line 197 i cannot figure that one out. Edited April 23, 2011 by Daron Quote
rulerofzu Posted April 23, 2011 Posted April 23, 2011 Should imagine thats a $_GET['ID'] Look at the query above :D Quote
Daron Posted April 23, 2011 Posted April 23, 2011 i tried {$_GET[{$r['userid']}]' but that didnt work 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.