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

Pages: [1]   Go Down
  Print  
Author Topic: The Strange Rock  (Read 6340 times)
0 Members and 1 Guest are viewing this topic.
Lurch
Guest
« on: January 16, 2005, 01:23:56 PM »

Another basic forest event where you stumble apon a strange rock... Got this idea from an old LORD IGM.

Smiley

http://dragonprime.net/users/Lurch/rock.zip
Logged
Dannic
Guest
« Reply #1 on: January 16, 2005, 02:16:53 PM »

this is incorrect
Code:
$session[user][charme]--;

Code:
$session[user][gold] += $gold;

Code:
$session[user][level]

Should be

Code:
$session['user']['charm']--;

Code:
$session['user']['gold'] += $gold;

Code:
$session'[user']['level']
« Last Edit: January 16, 2005, 02:20:04 PM by Dannic » Logged
Lurch
Guest
« Reply #2 on: January 16, 2005, 02:24:44 PM »

Thanks... fixed Smiley
Logged
jerico2day
Member
Militia
**
Offline Offline

Posts: 8



View Profile WWW
« Reply #3 on: January 30, 2005, 06:16:48 PM »

function rock_install() {
   if (!is_module_active('secondweapon')){

secondweapon can't be right, do you mean 'rock' ?
« Last Edit: January 30, 2005, 06:17:22 PM by jerico2day » Logged
Lurch
Guest
« Reply #4 on: February 06, 2005, 11:12:55 AM »

Thanks... fixed d:)
Logged
CortalUX
Dwellings Project
Mod God
*****
Offline Offline

Posts: 796


Wogga! Meep!


View Profile WWW
« Reply #5 on: February 06, 2005, 12:09:26 PM »

Code:
$session'[user']['level']
should actually be
Code:
$session['user']['level']

Edit: Completely unrelated... who loves the chocolate!!??!!
« Last Edit: February 06, 2005, 12:10:05 PM by CortalUX » Logged
Lurch
Guest
« Reply #6 on: February 06, 2005, 12:23:38 PM »

Hmm, dont see that? It appears to be $session['user']['level'] ?
Logged
CortalUX
Dwellings Project
Mod God
*****
Offline Offline

Posts: 796


Wogga! Meep!


View Profile WWW
« Reply #7 on: February 06, 2005, 12:29:23 PM »

Code:
$session'[user']['level']
I was replying to that post by Dannic Roll Eyes
Logged
Dannic
Guest
« Reply #8 on: February 06, 2005, 04:43:44 PM »

doh...
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #9 on: February 06, 2005, 05:36:16 PM »

Actually, those are not incorrect, but they will result in slower perfromance (Well, the charme is Tongue ).

As the '' signify a specific variable to search for, it makes it much easier for the PHP and DB to look under 'user' and then into 'gems' rather than an ambiguous user and gems.

Go to google and type in a query with '' or "" around it. You wull get a better search result.
« Last Edit: February 06, 2005, 05:36:53 PM by Sichae » Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Dannic
Guest
« Reply #10 on: February 06, 2005, 06:27:31 PM »

Actually if it was used exactly as I posted then it would have resulted in a syntax error.  Not going to edit that post on it though.  Everyone makes mistakes.  Nice to be reminded of them sometimes.
Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #11 on: February 07, 2005, 02:43:40 PM »

Actually if it was used exactly as I posted then it would have resulted in a syntax error.

Well, as I never made reference for him to use your code... I only said that you saying that it is incorrect, is wrong. Then, I went through and explained why it is better to do it the newer (9.Cool accepted way, despite what errors you made, I just stated that the use of "" and '' is the better way to go.

* Sichae returns to his Pizza

« Last Edit: February 07, 2005, 02:45:34 PM by Sichae » Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

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