DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • January 23, 2018, 03:57:54 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Help please.  (Read 2734 times)
0 Members and 1 Guest are viewing this topic.
TeMpTeD
Guest
« on: May 04, 2005, 01:49:48 PM »

OK, so I put this in the common to display what type of boat my users have..
Code:
.templatereplace("statrow",array("title"=>"Boat Type","value"=>$row4['type']))
and then at the top of the charstats function I put
Code:
$sql="SELECT * FROM ships WHERE ownerid='".$session[user][acctid]."'";
$result=db_query($sql);
$row4=db_fetch_assoc($result);
and then when my users buy a house, as well as myself, the stats part for boats comes up as nothing...any ideas?


EDIT: I will be releasing this mod on here once it is completed..then try and rework it to work for the new version of lotgd...
« Last Edit: May 04, 2005, 01:52:15 PM by TeMpTeD » Logged
robert
Old Dog
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« Reply #1 on: May 04, 2005, 02:01:17 PM »

Would have easier to use an array for the boat types and then call it for the stats.

Actually, take a look on how races are configured and called, then you can easily figure this simple problem out.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
24 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search