Raised This Month: $ Target: $400
 0% 

Motd with link


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 01-11-2020 , 06:43   Motd with link
Reply With Quote #1

How to open a motd directly with a link but the link is in a cvar

eg :

PHP Code:
show_motd(id "%s","hello",g_link
But it's showing error. How to do this ?
Awesome_man is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-11-2020 , 07:48   Re: Motd with link
Reply With Quote #2

"show_motd" has 3 arguments in total, you used 4. Always check the API before asking questions - https://www.amxmodx.org/api/amxmodx/show_motd

Simply replace "%s" with "g_link".
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 01-11-2020 , 08:06   Re: Motd with link
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
"show_motd" has 3 arguments in total, you used 4. Always check the API before asking questions - https://www.amxmodx.org/api/amxmodx/show_motd

Simply replace "%s" with "g_link".
Compiled fine but now it's just showing link inside a blank white motd instead of opening that link

Last edited by Awesome_man; 01-11-2020 at 08:13.
Awesome_man is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-11-2020 , 08:15   Re: Motd with link
Reply With Quote #4

If the link is "https", it won't show it. Only "http" is supported.
__________________

Last edited by OciXCrom; 01-11-2020 at 08:15.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 01-12-2020 , 10:25   Re: Motd with link
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
If the link is "https", it won't show it. Only "http" is supported.
Sorry for late reply. Thanks a lot
Awesome_man 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:57.


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