Variable in txt motd.
It's possible to put a variable in txt motd?
|
Re: Variable in txt motd.
It's better to format the motd string into the plugin, else you will need to read the file and store it in a string, then replace words with variables (like replacing %PLAYER_NAME% with player's name...).
|
Re: Variable in txt motd.
Quote:
|
Re: Variable in txt motd.
Something like this:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: Variable in txt motd.
Quote:
|
Re: Variable in txt motd.
Well, I have this error:
Code:
L 05/18/2012 - 11:55:27: Start of error session. |
Re: Variable in txt motd.
Post the contents of the .txt file.
Are you sure it doesn't exceed 256 characters? |
Re: Variable in txt motd.
Look that:
Code:
<html> |
Re: Variable in txt motd.
That works fine for me.
|
Re: Variable in txt motd.
Quote:
Try to show the motd 2 times and check your logs. Well, the motd works on first time. But if I show the motd 2 times, I have this error. |
| All times are GMT -4. The time now is 00:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.