AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Motd with img (img url from cvar) (https://forums.alliedmods.net/showthread.php?t=140510)

Debesėlis 10-13-2010 05:32

Motd with img (img url from cvar)
 
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 ) ); 


abdul-rehman 10-13-2010 05:50

Re: Motd with img (img url from cvar)
 
You need show_motd to display it :x

Debesėlis 10-13-2010 05:56

Re: Motd with img (img url from cvar)
 
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

Vechta 10-13-2010 06:37

Re: Motd with img (img url from cvar)
 
Quote:

Originally Posted by abdul-rehman (Post 1323639)
You need show_motd to display it :x

no.

alan_el_more 10-13-2010 07:47

Re: Motd with img (img url from cvar)
 
get_pcvar_num
:arrow:
get_pcvar_string

Altecaho 10-13-2010 08:55

Re: Motd with img (img url from cvar)
 
Why do you need the plugin, if you can just paste the code in your MOTD? :)

bigbud 10-13-2010 08:57

Re: Motd with img (img url from cvar)
 
Quote:

Originally Posted by Debesėlis (Post 1323631)
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); 


Debesėlis 10-13-2010 09:17

Re: Motd with img (img url from cvar)
 
Quote:

Originally Posted by bigbud (Post 1323732)
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 :)


All times are GMT -4. The time now is 10:16.

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