VitalEnd Posted June 24, 2010 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
Dayo Posted June 24, 2010 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
VitalEnd Posted June 24, 2010 Author 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
Dayo Posted June 24, 2010 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
Danny696 Posted June 24, 2010 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
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.