Jump to content
MakeWebGames

Recommended Posts

Posted
Ok, I figured out you have to select a category first. BUT it still will only list the first item. Also, with cronus gang armory I need to add the following

 

5. Find the following lines in your current inventory.php(around line 97-100):
if($i['armor'])
{
print " [<a href='equip_armor.php?ID={$i['inv_id']}'>Equip as Armor</a>]";
}
After it, add:
$ujk=$db->query("SELECT * FROM loaned WHERE nUSER=$userid && nITEM={$i['itmid']} LIMIT 1",$c);
$howmany=$db->num_rows($ujk);
if($gangdata['gangARMORY'] > 0 && $howmany == 0)
{
print" [<a href='armory.php?action=donate&ID={$i['inv_id']}'>Donate To Gang</a>]";
}
if($howmany > 0)
{
$lnd=$db->fetch_array($ujk);
print" [<a href='armory.php?action=return&ID={$lnd['nID']}'>Return To Gang</a>]";
}

 

Which messes up the inventory and nothing shows. Anyone know how to get ahold of the mod developer? For $20, this thing needs to work.

 

[uSER=65371]sniko[/uSER] it says special thanks to you in the mod. Can you help?

 

looks like a mysql error could be wrong but it has a && in the statement and i think thats for php only try change that to AND so like this

 

$ujk=$db->query("SELECT * FROM loaned WHERE nUSER=$userid AND nITEM={$i['itmid']} LIMIT 1",$c);

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...