Jump to content
MakeWebGames

chaoswar4u

Banned
  • Posts

    221
  • Joined

  • Last visited

Everything posted by chaoswar4u

  1. Nothing major but a pain. Basics is that if a user decides to post a forum post without adding a topic will render the topic unreadble as there is no text to creat a link to be able to access it. Forums in mccode V2. Anyone already have the fix for this? Any help would be great as always. Thx
  2. Re: [mccode] Updated v1.0 Nunclear Bomb Anyone got the fixes for this yet. Would be great to have it fully working.
  3. Re: Gangs Help. +1 Thats is lol
  4. Re: Gangs Help. This has been tried using the gangRESPECT <150 however its reading this from the gang who is declaring war and not reading it of the clan being declared on.
  5. Re: Gang Surrender problem. Yet another one. Code I would say has the problem - function gang_staff_viewsurrenders() { global $db,$ir,$c,$userid,$gangdata; if(!isset($_POST['subm'])) { print "<form action='yourgang.php?action=staff&act2=viewsurrenders' method='post'> Choose who to accept the surrender from. <input type='hidden' name='subm' value='submit' /> Gang: <select name='sur' type='dropdown'>"; $wq=$db->query("SELECT s.*,w.* FROM surrenders s LEFT JOIN gangwars w ON s.surWAR=w.warID WHERE surTO={$ir['gang']}"); while($r=$db->fetch_row($wq)) { if($gangdata['gangID'] == $r['warDECLARER']) { $w="You";$f="warDECLARED"; } else { $w="Them";$f="warDECLARER"; } $ggq=$db->query("SELECT * FROM gangs WHERE gangID=".$r[$f]); $them=$db->fetch_row($ggq); print "<option value='{$r['surID']}'>War vs. {$them['gangNAME']} (Msg: {$r['surMSG']})</option>"; } print "</select> <input type='submit' value='Accept Surrender' /></form>"; } else { $_POST['sur'] = abs((int) $_POST['sur']); $q=$db->query("SELECT surWAR FROM surrenders WHERE surID={$_POST['sur']}"); $_POST['war'] = $db->fetch_single($q); $wq=$db->query("SELECT * FROM gangwars where warID={$_POST['war']}"); $r=$db->fetch_row($wq); if($gangdata['gangID'] == $r['warDECLARER']) { $w="You";$f="warDECLARED"; } else { $w="Them";$f="warDECLARER"; } $db->query("DELETE FROM surrenders WHERE surID={$_POST['sur']}"); $db->query("DELETE FROM gangwars WHERE warID={$_POST['war']}"); $ggq=$db->query("SELECT * FROM gangs WHERE gangID=".$r[$f]); $them=$db->fetch_row($ggq); $event=str_replace("'","''","{$gangdata['gangNAME']} have accepted the surrender from {$them['gangNAME']}, the war is over!"); $db->query("INSERT INTO gangevents VALUES('',{$ir['gang']},unix_timestamp(),'$event') , ('',".$r[$f].",unix_timestamp(),'$event')"); print "You have accepted surrender, the war is over."; } }
  6. I currently now faced with another gang surrender fault. Im unsure what the cause is. The system will work fine but after so many surrenders are entered into the database its starts going mad. People start getting , they can view the surrender but the button disappears to others saying they have been sent a surrender but dont see anything to clicking the button for it to say surrender accepted which dosent close the war. ????????? I woundered if anyone else had this problem. Could it be when no one enters a message maybe? As I say it works form the start but then goes mad after so many. The only difference I can see is some have a message and some dont. Anyone had this? Thx for any help in advance.
  7. Re: V2 Mccode Background Change (Middle) Ye already know that golden. The ability required is to change the center to an image file say.
  8. I wish to make it so that gangs carnt declare war on other gangs with say for example 150 or less respect. Thus giving new gangs the time to get prepared with members etc. However if the gang with 150 or lower respect wants to declare war then they can. ANy help on how to do this would be great.
  9. I would like to have my markets return all unsold items to the user everyweek thus to remove mass priced items that stay there forever. Any help on how to do this would be great. Thx in advance.
  10. Re: Gang surrender error! Look around the forums I already posted the fix for this but here it is again. find: in yourgang.php list($_POST['war']) = $db->fetch_row($q); replace with: $_POST['war'] = $db->fetch_single($q);
  11. Re: Gold Fusion Wars for sale I didnt want to say anything but well UCC did the job needed. :-o
  12. Re: USER ID ???? Thats a good point really. Is there any script to recount the user ids? Dont know if the has happened here but usally happens where things have been removed form the database however it will carry on counting from its last entry. Good to keep the accounts in numeric order. :?
  13. Re: Stopping IP Transfers Well it dosent work the way i edited for v2 but as it is now at v1 the users from the very old post which has been removed say that this worked in v1. I just require a working v2 of this. That would be great if anyone can help. :?
  14. Gangs have a few bugs i require help on. The first is you declare war on a gang and that is all ok but then you can declare war on the same person thus 2 wars 1 gang. The function is   function gang_staff_wardeclare() { global $db,$ir,$c,$userid,$gangdata; if(isset($_POST['subm'])) { $_POST['gang'] = abs((int) $_POST['gang']); $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("'","''","{$gangdata['gangNAME']} declared war on {$them['gangNAME']}"); $db->query("INSERT INTO gangevents VALUES('',{$ir['gang']},unix_timestamp(),'$event') , ('',{$_POST['gang']},unix_timestamp(),'$event')"); print "You have declared war!"; } else { print " Choose who to declare war on.   Gang: "; $q=$db->query("SELECT * FROM gangs WHERE gangID != {$ir['gang']}"); while($r=$db->fetch_row($q)) { print "{$r['gangNAME']}\n"; } print "   "; } } The second error is a user still has the ability to pass a gangs president to another user that is also a president of there own gang. Any help would be great. Many thx in advance.
  15. Some one posted this ages ago but its missing now. Here it is... $m=mysql_query("SELECT * FROM users WHERE userid={$_POST['user']} LIMIT 1",$c); $rm=mysql_fetch_array($m); if($rm['lastip'] == $ir['lastip']) { Die("No sending to people on the same IP."); }   Carnt seem to get this to work for V2. Even edited this as it is in V1 state at the moment. This is to be placed in send money.php for example. Any help would great. Many thx in advance for any replies.
  16. Re: users not levelling up Depending on the users level in question it may be an EXP max out in the database. Level 100 something maxes the EXP at 9999999. Just up the INT in user table. If it is this just look in tables and you will see the list of 9999999 on the users EXP. If this is your problem anyways.
  17. I have Mccodes V2 auto donator problems. I checked everything over and over. If anyone out there has V2 and can help then please contact me. Willing to pay for services. Thx for any replies if anyone has some direct help. Thx
  18. Re: V2 Mccode Background Change (Middle) Bump
  19. All the mail function works in v2 except when you recieve mail from a mass of from the system (admin) or when you send a mass mail from Your gang. The code for the Admin mass mail is staff special.php while($r=$db->fetch_row($q)) { $db->query("INSERT INTO mail VALUES('', 0, 0, {$r['userid']}, unix_timestamp(),'$subj','{$_POST['text']}')"); print "Mass mail sent to {$r['username']}. "; } I tried adding before the Mass mail sent $db->query("UPDATE users SET new_mail=new_mail+1 "); However this causes it to add 1 new mail per member. Example if you mass mailed 4 members then 1 member would get the Mail (4) but infact only have 1 mail to read. Code section for yourgang.php function gang_staff_massmailer() { global $db,$ir,$c,$userid,$gangdata; if($_POST['text']) { $subj="This is a mass mail from your gang"; $q=$db->query("SELECT * FROM users WHERE gang={$ir['gang']}"); while($r=$db->fetch_row($q)) { $db->query("INSERT INTO mail VALUES('', 0, {$ir['userid']}, {$r['userid']}, unix_timestamp(),'$subj','{$_POST['text']}')"); print "Mass mail sent to {$r['username']}. "; } print "Mass mail sending complete! > Back"; } else { print "Mass Mailer   Text:     "; } } Any help would be great. Many thx in advance for any replies.
  20. Can anyone help regarding how I would go about making the option to allow presidents to delete there clan but only when they are not in war. Also stopping the ability of changing the gang president to a user that already is a gang owner.& to stop new clans getting war declared on them but they can declare if they wish. This option would be based on there respect level. This option allows new gangs to get prepared for wars and not be destroyed as they start. I run V2 Code // Many thx in advance for any help.
  21. Re: Best Sites To Advertise On Im looking for sites to advertise on. Money paid. Anyone help the drop me a mail.
  22. Re: Contacts Error? Well here ya go peeps. I found the problem myself. open contactlist.php   Find <td>Remove</td> and replace with <td>Remove</td> Tried and tested. Works
  23. Re: [mccode] Advanced Warning System The V2 one is bug with undefined functions. Also if you use the first post code and remove the top bit it works however the edit dosent work. It says its updated the warning but it dosent do anything. ANyfixes?
  24. Re: Problem regarding Hour_Cron IN Mccode V2 Well Done deathstar. Another un useful reply. I added that function UCC but then came up with another error for undefined function. Ill have a look into and post my findings otherwise if anyone has already got the fix for this then your help would be great.
  25. Re: Contacts Error? The page at the start that shows the list of contacts is contactlist.php and then when you try to remove the contact its contactlist.php?action=remove&f=
×
×
  • Create New...