VitalEnd Posted June 24, 2010 Share Posted June 24, 2010 Hi, i am using a one click attack system and i get the following error: Warning: Cannot use a scalar value as an array in /home/mafiasta/public_html/attack.php on line 74 Line 74 is: $pri['weapon'] = 10; i've no idea what is wrong, can anyone help ? Quote Link to comment Share on other sites More sharing options...
Dayo Posted June 24, 2010 Share Posted June 24, 2010 is $pri declared as an array eg $pri=mysql_fetch_array($query); or $pri=array(); etc... by adding $pri=array(); above that should solve the error Quote Link to comment Share on other sites More sharing options...
VitalEnd Posted June 24, 2010 Author Share Posted June 24, 2010 hmm i think this is what you mean but it does appear pri is declared as something: $pri = $db->query("SELECT * FROM `items` WHERE (`itmid` = ". $ir['equip_primary'] .");"); // $user_class1 & $q0 Quote Link to comment Share on other sites More sharing options...
Dayo Posted June 24, 2010 Share Posted June 24, 2010 try replacing with this $pri = mysql_fetch_array($db->query("SELECT * FROM `items` WHERE (`itmid` = ". $ir['equip_primary'] .");")); // $user_class1 & $q0 Quote Link to comment Share on other sites More sharing options...
Danny696 Posted June 24, 2010 Share Posted June 24, 2010 Well, seen as this is a paid mod, why not ask the person who made it. and i belive this mod has been fixed. Ask cronus Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted June 26, 2010 Share Posted June 26, 2010 its in the free mods section 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.