Raised This Month: $51 Target: $400
 12% 

img in motd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 11-30-2010 , 09:45   img in motd
Reply With Quote #1

Why doesn`t show img?

PHP Code:
new g_WebSite;

public 
plugin_init ( ) {
    
g_WebSite register_cvar"amx_website""www.--.com" );
}
    
// get your pcvar value as a string
    
new szURL[33];
    
get_pcvar_string(g_WebSiteszURL32);
    
iLen += formatexsBufferiLen ], CharsMaxsBuffer ) - iLen,  "<center><img  src='http://%s/images/image_01.jpg'></img></center><br>"szURL); 
Debesėlis is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-30-2010 , 13:06   Re: img in motd
Reply With Quote #2

You have an unnecessary space in the img tag and also img has no closing tag.

PHP Code:
    iLen += formatexsBufferiLen ], CharsMaxsBuffer ) - iLen,  "<center><img src='http://%s/images/image_01.jpg'></center><br>"szURL); 
Try printing the variable to make sure the website is right.

PHP Code:
    log_amx"website: %s"sBuffer ); 
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 11-30-2010 , 13:21   Re: img in motd
Reply With Quote #3

good thank you.

Last edited by Debesėlis; 11-30-2010 at 13:24.
Debesėlis is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-30-2010 , 18:22   Re: img in motd
Reply With Quote #4

I didn't think single quotes worked in HTML for parameters.
__________________
fysiks is offline
Reply



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 02:51.


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