Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,657
  • Joined

  • Last visited

  • Days Won

    74

Everything posted by Uridium

  1. if ($ir[character] =='Human'){ mysql_query("Select * from shops where viewer='Human'"); else print"You Not Human" }
  2. Infact the http and the target blank need to be removed as lucky mentioned they were not in the original but for some reason the forums have decided to place them there Using >>> print " [<a href=\"http://dpuse.php?ID={$i['inv_id']}\" target=\"_blank\">Use</a>]"; will give an error so use >> print " [<a href=dpuse.php?ID={$i['inv_id]}">Use</a>]";
  3. It only seems to do it when a php file has multiple line spacing ive never had problems with Notepad++ and used it for a long time but the file worked fine before i edited it UNLESS it was sent from the FTP to my comp in that state... so might be a transfer problem....
  4. example heres an example of how it pasted from notepad++ to normal notepad
  5. is anyone who is using Notepad++ having an issue where by you save a file send to FTP and you get a unexpected T_Include one line 1 Then when you paste to normal notepad the whole script is on line one instead of being spaced out ?? example:   <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php ------------------------------------------------------- -- Armory Script PLUS v1.0 -- A product of Flash Fire Gaming -- Copyright held 2006 by Cronus -----------------------------------------------------*/ include "globals.php"; if($ir[hospital]>0) die("You are in the hospital for {$ir[hospital]} minutes."); if($ir[jail]>0) die("You are in jail for {$ir[jail]} minutes."); $_GET['ID']= abs((int) $_GET['ID']); $_POST['qty']= abs((int) $_POST['qty']); if(!$_GET['ID'] || !$_POST['qty']) { print "Invalid use of file"; } else if($_POST['qty'] <= 0) { print "You have been added to the delete list for trying to cheat the game."; } else { $q=mysql_query("SELECT * FROM items WHERE itmid={$_GET['ID']}",$c); if(mysql_num_rows($q) == 0) { print "Invalid item ID"; } else { $itemd=mysql_fetch_array($q); if($ir['money'] < $itemd['itmbuyprice']*$_POST['qty']) { print "You don't have enough money to buy this item!"; $h->endpage(); exit; } if($itemd['itmbuyable'] == 0) { print "This item can't be bought!"; $h->endpage(); exit; } $price=($itemd['itmbuyprice']*$_POST['qty']); mysql_query("INSERT INTO inventory VALUES('',{$_GET['ID']},$userid,{$_POST['qty']},0);",$c); mysql_query("UPDATE users SET money=money-$price WHERE userid=$userid",$c); mysql_query("INSERT INTO itembuylogs VALUES ('', $userid, {$_GET['ID']}, $price, {$_POST['qty']}, unix_timestamp(), '{$ir['username']} bought {$_POST['qty']} {$itemd['itmname']}(s) for {$price}')", $c); print "You bought {$_POST['qty']} {$itemd['itmname']}(s) for \$$price"; } } $h->endpage(); ?>   Infact that seemed to work fine when posting on here so i'll try do a screen shot
  6. Since the launch of the new forums ive also noticed scripts going mental especially where there is a link or an image
  7. Its the same bloody principal. are you trying to make me look stupid...
  8. Yep not gonna work like that you may get the itemid or is it itmid i cant remember im sure its itmid though so for now im gonna use that to explain <img src='itemimg/{$itmid['itmid']}.jpg' size=70 width=70> <<< WILL WORK <img src='itemimg/{$itmid['itmid']}' size=70 width=70> <<< wont wont So your images can be only one format choose then stick to that format...   But have to say very nice though DamagedCity :) Yep tested it and it worked ok :)
  9. try changing mysql_query to $db->query
  10. From what ive learned about most peoples sites ive worked on the Users dbase can get rather large
  11. http://www.speedtest.net/result/1453035517.png
  12. Smokey that error just means that there are 2 Functions with the exact same name being used easiest way to find this out would be to open all the PHP files in notepad++ and do a search in all files for that name thats being declared twice if you get 2 results then you know 1 needs to be removed..
  13. I dont think its the Installer thats at fault i think a better Readme file would help people with common errors and how to eliminate them exmple when setting up via xampp and the user doesnt have a password for the dbase setup the installer wont install
  14. spud i suggest changing max-width and max-height to just width and height it dont seem to work on IE
  15. Uridium

    Help me!!!

    wow people still use 600 x 800 screen res lol
  16. Ive got it to work but its putting a page within a page
  17. whilst i like cronus's work i did find a few flaws on this script mainly the lending of items i couldnt understand how this >>> at 60 lines long..   if($gangdata['gangPRESIDENT']==$userid && $i['armoryLENT']==0) { print " [<a href='ganggive.php?ID={$i['itmid']}&ITEMID={$i['armoryID']}'>Give To Member</a>]"; } if($gangdata['gangVICEPRES']==$userid && $i['armoryLENT']==0) { print " [<a href='ganggive.php?ID={$i['itmid']}&ITEMID={$i['armoryID']}'>Give To Member</a>]"; } if($gangdata['gangPRESIDENT']==$userid && $i['itmtypeid']==3 && $i['armoryLENT']==0) { print" [<a href='lenditem.php?ID={$i['itmid']}&ITEMID={$i['armoryID']}'>Lend To Member</a>]"; } if($gangdata['gangPRESIDENT']==$userid && $i['itmtypeid']==4 && $i['armoryLENT']==0) { print" [<a href='lenditem.php?ID={$i['itmid']}&ITEMID={$i['armoryID']}'>Lend To Member</a>]"; } if($gangdata['gangPRESIDENT']==$userid && $i['itmtypeid']==6 && $i['armoryLENT']==0) { print" [<a href='lenditem.php?ID={$i['itmid']}&ITEMID={$i['armoryID']}'>Lend To Member</a>]"; } if($gangdata['gangPRESIDENT']==$userid && $i['itmtypeid']==7 && $i['armoryLENT']==0) { print" [<a href='lenditem.php?ID={$i['itmid']}&ITEMID={$i['armoryID']}'>Lend To Member</a>]"; } if($gangdata['gangVICEPRES']==$userid && $i['itmtypeid']==3 && $i['armoryLENT']==0) { print" [<a href='lenditem.php?ID={$i['itmid']}&ITEMID={$i['armoryID']}'>Lend To Member</a>]"; } if($gangdata['gangVICEPRES']==$userid && $i['itmtypeid']==4 && $i['armoryLENT']==0) { print" [<a href='lenditem.php?ID={$i['itmid']}&ITEMID={$i['armoryID']}'>Lend To Member</a>]"; } if($gangdata['gangVICEPRES']==$userid && $i['itmtypeid']==6 && $i['armoryLENT']==0) { print" [<a href='lenditem.php?ID={$i['itmid']}&ITEMID={$i['armoryID']}'>Lend To Member</a>]"; } if($gangdata['gangVICEPRES']==$userid && $i['itmtypeid']==7 && $i['armoryLENT']==0) { print" [<a href='lenditem.php?ID={$i['itmid']}&ITEMID={$i['armoryID']}'>Lend To Member</a>]"; }   couldnt have just been like this at 8 lines doing the same job as the above..   if($gangdata['gangPRESIDENT']==$userid || $gangdata['gangVICEPRES']==$userid && $i['armoryLENT']==0) { print " [<a href='ganggive.php?ID={$i['itmid']}&ITEMID={$i['armoryID']}'>Give To Member</a>]"; } if($gangdata['gangPRESIDENT']==$userid || $gangdata['gangVICEPRES']==$userid && $i['itmtypeid']==3 OR 4 OR 5 OR 6 OR 7 && $i['armoryLENT']==0) { print" [<a href='lenditem.php?ID={$i['itmid']}&ITEMID={$i['armoryID']}'>Lend To Member</a>]"; }   Also for those using the Quantify items you'll find this script doesnt take the item back from the user..... this is due to the recall.php using an insert and as soon as a user Quantifies thier items the script can no longer grab the ID of the item loaned... so heres a fix.. change mysql_query("DELETE FROM inventory WHERE inv_itemid={$_GET['ITEMID']} AND inv_userid={$user['userid']} LIMIT 1;",$c); to mysql_query("UPDATE inventory SET inv_qty=inv_qty-1 WHERE inv_itemid={$_GET['ITEMID']} AND inv_userid={$user['userid']} LIMIT 1;",$c);
  18. Just one thing if non donators get 20 and donators get 20 wouldnt that cause a bit of friction between them both. id make 10 hits per non donator and 20 for donator... so on cron day just add..   $db->query("UPDATE users SET attacklimit=20 WHERE donatordays > 1");   And Non Donators   $db->query("UPDATE users SET attacklimit=10 WHERE donatordays = 0");
  19. Thread Now Closed...
  20. BIGINT (64) should cure your worries :)
  21. Original message removed by illusions
  22. Maybe its cos im testing on Localhost i'll upload to my test site and see if i get the same error as you....
  23. Strange it worked flawlessly when i was testing it...
  24. wildhickoks.com named after wild bill hickok
  25. Closed due to other thread being created
×
×
  • Create New...