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

Pages: [1] 2   Go Down
  Print  
Author Topic: error in train.php  (Read 5994 times)
0 Members and 1 Guest are viewing this topic.
orochi
Guest
« on: April 09, 2006, 08:22:19 PM »

whats wrong with this line?

Code:
if (getsetting('displaymasternews') addnews("`3%s`3 was hunted down by their master, `^%s`3, for being truant.",$session['user']['name'],$master['creaturename']);

im getting
Parse error: parse error, unexpected T_STRING in /home/stebert/public_html/orochi/train.php on line 149

and above is line 149

also, line 212
Code:
if (getsetting('displaymasternews') addnews("`%%s`3 has defeated ".($session['user']['sex']?"her":"his")." master, `%%s`3 to advance to level `^%s`3 after `^1`3 day!!", $session['user']['name'],$badguy['creaturename'],$session['user']['level']);


214
Code:
if (getsetting('displaymasternews') addnews("`%%s`3 has defeated ".($session['user']['sex']?"her":"his")." master, `%%s`3 to advance to level `^%s`3 after `^%s`3 days!!", $session['user']['name'],$badguy['creaturename'],$session['user']['level'],$session['user']['age']);

222
Code:
if (getsetting('displaymasternews') addnews("`%%s`5 has challenged their master, %s and lost!`n%s",$session['user']['name'],$badguy['creaturename'],$taunt);
« Last Edit: April 09, 2006, 08:26:31 PM by orochi » Logged
MvpZERO.net
Guest
« Reply #1 on: April 09, 2006, 08:31:21 PM »

Please read the following topic and apply fixs:

http://dragonprime.net/index.php?topic=4126.msg35855;topicseen#msg35855

Heres the fix:

for those, Open up the train.php file in a text editor.

Search for:
Code:
if (getsetting('displaymasternews')
*should be in 4 places*

Replace all 4 with:
Code:
if (getsetting('displaymasternews',1))

And your problem should be fixed.


Thanks for your time,
Dylan
« Last Edit: April 09, 2006, 08:32:56 PM by MvpZERO.net » Logged
orochi
Guest
« Reply #2 on: April 09, 2006, 08:46:20 PM »

all fixed up. thanks
Logged
Jdrid
Guest
« Reply #3 on: April 09, 2006, 09:45:03 PM »

Couldn't you have told him just to use the patch file?
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5479



View Profile WWW
« Reply #4 on: April 09, 2006, 09:51:11 PM »

Not when the patch file introduces the error!
Logged

Play the latest beta version here on DragonPrime
Jdrid
Guest
« Reply #5 on: April 09, 2006, 09:53:51 PM »

Oh, Sorry then. I'm fixing it now as well...Just noticed that...
Logged
MvpZERO.net
Guest
« Reply #6 on: April 09, 2006, 09:54:57 PM »

The patch file was released with the error if i'm correct. This is another patch found recently as of today lol

Edit: Talisman beat me to it.

Would you like me to upload a zip? so they don't have to edit the file rather then just overwrite it?
(just wanting to help)
Logged
Jdrid
Guest
« Reply #7 on: April 09, 2006, 10:01:24 PM »

I can right now...This should be correct...
Logged
MvpZERO.net
Guest
« Reply #8 on: April 09, 2006, 10:02:23 PM »

Thanks Martin Azn
Logged
Jdrid
Guest
« Reply #9 on: April 09, 2006, 10:04:36 PM »

No Problem...I was wondering if anyone was ever going to upload it since the question was asked at least 3 times. Cheesy
Logged
Jdrid
Guest
« Reply #10 on: April 09, 2006, 10:26:17 PM »

I came into a problem, same one actually, on the same line when I try to access the module manger...

Code:
Parse error: syntax error, unexpected T_STRING in /home/jdrid/public_html/logd/modules/train.php on line 149

and my server has my updated file and the masters work fine...So did I mess something up with the edit?
Logged
Nightborn
Guest
« Reply #11 on: April 09, 2006, 11:14:37 PM »

Code:
if (getsetting('displaymasternews',1)) addnews("`3%s`3 was hunted down by their master, `^%s`3, for being truant.",$session['user']['name'],$master['creaturename']);

should be like this line 149.

so I don't see any other wrong issue.
Logged
Jdrid
Guest
« Reply #12 on: April 10, 2006, 05:15:44 AM »

but that's the same fix that was applied to the the line to fix the challenge master problem, and I fixed it on all 4 lines and it works, so that line is already like that now...
Logged
Nightborn
Guest
« Reply #13 on: April 10, 2006, 06:29:02 AM »

exactly.

I tested the file and it worked.

with the news being displayed an no other errors... you might simply download the patch file and get the train.php from there.
Logged
Jdrid
Guest
« Reply #14 on: April 10, 2006, 02:02:57 PM »

Is that the updated file?
Logged
Pages: [1] 2   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
46 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search