Joshua Posted December 5, 2009 Posted December 5, 2009 Ok, so (Gambino) Sold a customer of mine this mod a few weeks back claiming it was "his" mod that he made just for them, when Obviously it's not because I have had this mod for about 7 months and considering they are on V2 and there are several calls to admin.php he's full of it....k rant over...anywho I was fixing this mod for the customer and have everything done but this last bit...obviously the installation instructions could use some improvement...if ANYONE knows wth this means i'd appreciate it 2.open "Add All Costs.txt" and add the codes in a file where all users have 100 automatically. Code he's referring to $jsdf=mysql_query("SELECT * FROM items WHERE itmtype=4",$c); while($add=mysql_fetch_array($jsdf)) { mysql_query("INSERT INTO ammunition VALUES('{$add['itmid']}','100')",$c) or die(mysql_error()); print"{$add['itmname']} Ammo Added."; } Quote
Arek Posted December 6, 2009 Posted December 6, 2009 :) Hi By the looks of it, it is adding 'ammo' for all items with the type 4 (weps? maybe duno) from the 'readme' it should be giving the users 100 ammo each (duno?) but the query will only insert the itemid (not userid) Or it could be building a 'shop' like thing where it will list all weps and display how much ammo you can buy? Not sure would need more code. Quote
Joshua Posted December 6, 2009 Author Posted December 6, 2009 The bit about sticking it where all users have 100 is the tricky part I'm taking it to mean, set it UP so all users would have 100 Ammo Automatically the first round...what do ya think? :\ Quote
Arek Posted December 6, 2009 Posted December 6, 2009 It woudlent work with that code, thats only giving the item 100ammo Quote
Joshua Posted December 7, 2009 Author Posted December 7, 2009 Right, it's supposed to The problem is...the instructions say NOW PUT THIS FILE WHERE USERS AUTOMATICALLY HAVE 100 So that's losing me :P Quote
Eruondo Posted December 11, 2009 Posted December 11, 2009 I think he's referring to this bit: mysql_query("INSERT INTO ammunition VALUES('{$add['itmid']}','100')",$c) Quote
Joshua Posted December 11, 2009 Author Posted December 11, 2009 I'm not sure Zero, he posts on Cronwerks as gambino, and i beleive he posts here as gambino as well. Quote
Joshua Posted December 11, 2009 Author Posted December 11, 2009 Also, I know what bit he's referring to but where am I sticking it? lol..where all users have 100 what does that even mean...am I over thinking something? >< 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.