DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • April 22, 2018, 12:57:06 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Help please.  (Read 2825 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
Please take the time to read the FAQ and browse the DragonPedia

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