DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • July 15, 2018, 04:23:55 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Brothel  (Read 3394 times)
0 Members and 1 Guest are viewing this topic.
BigT
Guest
« on: May 12, 2004, 03:29:49 PM »

In the Brothel when you go in and you have no gems or 1 it'll go to a negative but when you return to the village it goes back to zero. My question is how would you prevent this? I tried this but hell I dont know what im doing.

if ($session['user']['gems']>2

page_Header("Ge'Mah's Relaxation Respite");
   output("You do not have enough gems there. Come back when you get enough");
   addnav("Return to village","village.php");
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5479



View Profile WWW
« Reply #1 on: May 12, 2004, 03:34:54 PM »

Try changing the > (greater than) to < (less than) so that line reads:
Code:
if ($session['user']['gems']<2 {
Logged

Play the latest beta version here on DragonPrime
Spider
Guest
« Reply #2 on: May 12, 2004, 03:35:48 PM »

Code:
if ($session['user']['gems']<2){

page_Header("Ge'Mah's Relaxation Respite");
   output("You do not have enough gems there. Come back when you get enough");
   addnav("Return to village","village.php");

}
else{

rest-of-brothel-code-here

}

that should do the trick for ya Smiley
« Last Edit: May 12, 2004, 03:36:17 PM by Spider » Logged
BigT
Guest
« Reply #3 on: May 12, 2004, 03:38:27 PM »

OO hey i got close  Grin
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

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