AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Motd with link (https://forums.alliedmods.net/showthread.php?t=320820)

Awesome_man 01-11-2020 06:43

Motd with link
 
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 ?

OciXCrom 01-11-2020 07:48

Re: Motd with link
 
"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".

Awesome_man 01-11-2020 08:06

Re: Motd with link
 
Quote:

Originally Posted by OciXCrom (Post 2679741)
"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

OciXCrom 01-11-2020 08:15

Re: Motd with link
 
If the link is "https", it won't show it. Only "http" is supported.

Awesome_man 01-12-2020 10:25

Re: Motd with link
 
Quote:

Originally Posted by OciXCrom (Post 2679744)
If the link is "https", it won't show it. Only "http" is supported.

Sorry for late reply. Thanks a lot


All times are GMT -4. The time now is 02:58.

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