Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Have you purchased a mod and lost your copy? Just file a support ticket through your "My Mods" page.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: battle tent fix  (Read 1178 times)

uwibami

  • Basic Member
  • *
  • Reputation Power: 33
  • uwibami has no influence.
  • Offline Offline
  • Posts: 7
    • View Profile
battle tent fix
« on: August 04, 2009, 03:14:38 PM »
not sure if this is where this post should be or not but if anybody has a problem adding more than one bot to there battle tent here is the code to change o fix it

change this
$q=$db->query("SELECT count(*) FROM challengesbeaten WHERE npcid=$v");
$times=$db->fetch_single($q);

to this
$q2=$db->query("SELECT count(*) FROM challengesbeaten WHERE npcid=$userid");
$times=$db->fetch_single($q2);

I thought that this site hs helped me so much that i would try and be some help myself :D
Logged

halfbaked

  • Basic Member
  • *
  • Reputation Power: 39
  • halfbaked has no influence.
  • Offline Offline
  • Posts: 16
    • View Profile
Re: battle tent fix
« Reply #1 on: March 03, 2010, 05:05:20 AM »
thanks for the fix worked great
Logged

Cronus

  • Administrator
  • Senior Member
  • *****
  • Reputation Power: 2901
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 550
    • MSN Messenger - preston__08@hotmail.com
    • View Profile
    • WWW
Re: battle tent fix
« Reply #2 on: March 04, 2010, 08:13:56 AM »
Thank uwi  :)
Logged
My msn is preston__08@hotmail.com if anyone is interested, I am online frequently.

vlad

  • Basic Member
  • *
  • Reputation Power: 3
  • vlad has no influence.
  • Offline Offline
  • Posts: 7
    • View Profile
    • WWW
    • Email
Re: battle tent fix
« Reply #3 on: July 05, 2010, 10:23:49 AM »
not sure if this is where this post should be or not but if anybody has a problem adding more than one bot to there battle tent here is the code to change o fix it

change this
$q=$db->query("SELECT count(*) FROM challengesbeaten WHERE npcid=$v");
$times=$db->fetch_single($q);

to this
$q2=$db->query("SELECT count(*) FROM challengesbeaten WHERE npcid=$userid");
$times=$db->fetch_single($q2);

I thought that this site hs helped me so much that i would try and be some help myself :D

Nice , its basic and effective
Logged
 


This forum is now closed and has moved to a new location! Click here to find out why.