Jump to content
MakeWebGames

Recommended Posts

Posted

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 ?

Posted

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

Posted

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

Posted

try replacing with this

$pri = mysql_fetch_array($db->query("SELECT * FROM `items` WHERE (`itmid` = ". $ir['equip_primary'] .");")); // $user_class1 & $q0

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...