Raised This Month: $ Target: $400
 0% 

show_motd - Website


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Minimum
Senior Member
Join Date: Jun 2006
Old 07-20-2007 , 00:44   show_motd - Website
Reply With Quote #1

I have seen this done in a tutorial, but is not working when I try it. I am trying to show a website via motd. When I try the command it just shows the boards url (http://boards.gabionstudios.com/) in the motd, nothing else.

Here is my code:

Plugin Init -
Code:
public plugin_init() {     register_plugin("Gabion IPB Integration", "1.00", "Gabion Studios")         // Registering Player Rows     register_playercolumn("ipb_id","INTEGER UNSIGNED NOT NULL DEFAULT 0;")         // Cvars     register_cvar("ipb_prefix","ipb_")     register_cvar("ipb_url","http://boards.gabionstudios.com")         // Commands     register_concmd("amx_viewboards","cmd_viewboards",ADMIN_ALL)         // Register Component     pl_compid = register_component("Gabion IPB Integration") }

The actual function -
Code:
public cmd_viewboards(id) {     new boardsurl[128]     get_cvar_string("ipb_url",boardsurl,127)     show_motd(id,boardsurl,"Our Boards")     return PLUGIN_HANDLED }

Screenshot:
http://minimum.gabionstudios.com/ima.../motdbug-1.png

Last edited by Minimum; 07-20-2007 at 01:35.
Minimum is offline
Send a message via AIM to Minimum Send a message via MSN to Minimum
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode