DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • October 17, 2018, 01:13:16 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Brothel  (Read 3480 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
Play LoGD on Dragonprime

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