Raised This Month: $ Target: $400
 0% 

Motd with img (img url from cvar)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 10-13-2010 , 05:32   Motd with img (img url from cvar)
Reply With Quote #1

Please can any1 help? doesn`t show img...

Example:
PHP Code:
new g_WebSite;

public 
plugin_init ( ) {
    
g_WebSite register_cvar"amx_website""www.--.com" );
}

    
iLen += formatexsBufferiLen ], CharsMaxsBuffer ) - iLen"<center><img src=^"http://%s/images/image_01.jpg^"></img></center><br>", get_pcvar_num( g_WebSite ) ); 
Debesėlis is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 10-13-2010 , 05:50   Re: Motd with img (img url from cvar)
Reply With Quote #2

You need show_motd to display it
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 10-13-2010 , 05:56   Re: Motd with img (img url from cvar)
Reply With Quote #3

This is example! in motd doesn`t show img!

PHP Code:
http://%s/images/image_01.jpg 
With this shows:
PHP Code:
http://www.--.com/images/image_01.jpg 
But i need website with CVar
Debesėlis is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 10-13-2010 , 06:37   Re: Motd with img (img url from cvar)
Reply With Quote #4

Quote:
Originally Posted by abdul-rehman View Post
You need show_motd to display it
no.
Vechta is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 10-13-2010 , 07:47   Re: Motd with img (img url from cvar)
Reply With Quote #5

get_pcvar_num

get_pcvar_string
__________________
alan_el_more is offline
Altecaho
Senior Member
Join Date: Oct 2010
Old 10-13-2010 , 08:55   Re: Motd with img (img url from cvar)
Reply With Quote #6

Why do you need the plugin, if you can just paste the code in your MOTD?
Altecaho is offline
bigbud
Member
Join Date: Jan 2008
Old 10-13-2010 , 08:57   Re: Motd with img (img url from cvar)
Reply With Quote #7

Quote:
Originally Posted by Debesėlis View Post
Please can any1 help? doesn`t show img...

Example:
PHP Code:
new g_WebSite;

public 
plugin_init ( ) {
    
g_WebSite register_cvar"amx_website""www.--.com" );
}

    
iLen += formatexsBufferiLen ], CharsMaxsBuffer ) - iLen"<center><img src=^"http://%s/images/image_01.jpg^"></img></center><br>", get_pcvar_num( g_WebSite ) ); 
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); 
__________________
bigbud is offline
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 10-13-2010 , 09:17   Re: Motd with img (img url from cvar)
Reply With Quote #8

Quote:
Originally Posted by bigbud View Post
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); 
Thank you
Debesėlis 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 10:16.


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