Jump to content
MakeWebGames

PureKing

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by PureKing

  1. That's actually a pretty great idea. Thanks Dave.
  2. Ah, I guess.. It would have to have some mysql databases added for it, I'm sure. If I had more time from my career, I would willingly experiment with it myself, although being such a beginner in the field, it would take days for me to do something that some of the people here can do in like 5 minutes, I'm sure. To recap, if anyone has something like this, let me know and we'll work out a price. However, make sure you've either created it, or you can redistribute it. I don't believe in taking other people's work.
  3. I guess you got the general understanding of it. Pretty much.
  4. I'm looking for a federal jail comment system for MCCode v2. The mod basically would give the chance for the accused to interact with staff members, ideally Admins, or perhaps other trusted appointed staff members. I'm looking for someone to give me a quote to purchase this mod, before it is made. They can resell it at their discretion. Thanks.
  5. Thanks again Dj, you've been a great help. I think I'll read over some mysql tutorials now. ;)
  6. instead of re-posting a thread, I'll just reuse this one if that's all right. Once again, I apologize for being a "noob" at coding. At the current state, I'm trying to add an item that will increase bank interest rates. The item is already in the game, and it's ID happens to be 5. It was made through the staff panel. It's more than likely going to be a donator incentive item to be quite honest. I understand that bank interest is a massive cause of inflation, so I would like to limit it. Anyways, here is the code that I'm working with, it doesn't work needless to say, I know I have the syntax wrong/out of order.   $interestVoucher = $db->fetch_single($db->query('SELECT `inv_itemid` FROM `inventory`')); if ($interestVoucher=='5'){ $db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney/25) where bankmoney>0") ;}   Of course it would be added to Cron_day.php, but the code itself is wrong. Thanks for the communities patience, hopefully I can be more of an contributor instead of a leecher once my knowledge expands.
  7. Thanks buddy, it works perfectly.
  8. I don't need to go into great length about it, but I'm not that great at php. I don't expect anyone to code for me, or even to teach me. However, In editing a mod, I have encountered a problem when trying to edit "yourgang.php" the code is as followed.   global $db,$ir,$c,$userid,$gangdata; if(isset($_POST['subm'])) { $_POST['gang'] = abs((int) $_POST['gang']); if ($gangdata {$_POST['gang']}['status'] = 'Peaceful') { die("You can't go to war with peaceful clans!"); } { $db->query("INSERT INTO gangwars VALUES('',{$ir['gang']},{$_POST['gang']},unix_timestamp())"); $ggq=$db->query("SELECT * FROM gangs WHERE gangID={$_POST['gang']}"); $them=$db->fetch_row($ggq); $event=str_replace("'","''","<a href='gangs.php?action=view&ID={$ir['gang']}'>{$gangdata['gangNAME']}</a> declared war on <a href='gangs.php?action=view&ID={$_POST['gang']}'>{$them['gangNAME']}</a>"); $db->query("INSERT INTO gangevents VALUES('',{$ir['gang']},unix_timestamp(),'$event') , ('',{$_POST['gang']},unix_timestamp(),'$event')"); print "You have declared war!";   The code that I added was if ($gangdata {$_POST['gang']}['status'] = 'Peaceful') { die("You can't go to war with peaceful clans!");   I'm trying to develop to mod the file where clans can only declare on aggressive clans. (clans that are already in the warring mod) Long story short, this is not working, as the code simply does not let me declare war at all. (which is some success in my book.) Likewise, I have already modified the gangs sql for the "aggressive" and "peaceful" status using ALTER TABLE users ADD status enum('Peaceful','Aggressive')NOT NULL 'Peaceful'   If anyone could give me some friendly advice point out what I'm doing wrong, and possibly how to correct it, I would be very appreciative. Thanks.
×
×
  • Create New...