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

CSGO - Open MOTDURL help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pchun
Member
Join Date: Sep 2013
Old 07-03-2014 , 06:35   CSGO - Open MOTDURL help
Reply With Quote #1

This is work


PHP Code:
public MapList(client)
{
    
ShowMOTDPanel(client"Title""http://www.kzgo.net:8090/motd/map.html"MOTDPANEL_TYPE_URL);



This is not working

Why is that?


PHP Code:
public ProTop(client)
{

    
decl String:MOTDURL[128];
    
Format(MOTDURLsizeof(MOTDURL), "http://www.kzgo.net:8090/motd/%s.html"g_szMapName);
    
ShowMOTDPanel(client"Title""MOTDURL"MOTDPANEL_TYPE_URL);


pchun is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 07-03-2014 , 07:33   Re: CSGO - Open MOTDURL help
Reply With Quote #2

I think you should remove the " around the MOTDURL in the ShowMOTDPanel call.

PHP Code:
public ProTop(client)
{

    
decl String:MOTDURL[128];
    
Format(MOTDURLsizeof(MOTDURL), "http://www.kzgo.net:8090/motd/%s.html"g_szMapName);
    
ShowMOTDPanel(client"Title"MOTDURLMOTDPANEL_TYPE_URL);


__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium is offline
pchun
Member
Join Date: Sep 2013
Old 07-04-2014 , 01:22   Re: CSGO - Open MOTDURL help
Reply With Quote #3

Quote:
Originally Posted by Sillium View Post
I think you should remove the " around the MOTDURL in the ShowMOTDPanel call.

PHP Code:
public ProTop(client)
{

    
decl String:MOTDURL[128];
    
Format(MOTDURLsizeof(MOTDURL), "http://www.kzgo.net:8090/motd/%s.html"g_szMapName);
    
ShowMOTDPanel(client"Title"MOTDURLMOTDPANEL_TYPE_URL);


Don't work
pchun is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 07-04-2014 , 08:38   Re: CSGO - Open MOTDURL help
Reply With Quote #4

In csgo you must use javascript to open up another webpage for motd to work. Read through this https://forums.alliedmods.net/showthread.php?p=1900458
__________________
ecca is offline
pchun
Member
Join Date: Sep 2013
Old 07-04-2014 , 08:48   Re: CSGO - Open MOTDURL help
Reply With Quote #5

Quote:
Originally Posted by ecca View Post
In csgo you must use javascript to open up another webpage for motd to work. Read through this https://forums.alliedmods.net/showthread.php?p=1900458
I know that

http://www.kzgo.net:8090/motd/kz_beginnerblock_go.html
pchun is offline
ecca
Sexy Santa
Join Date: Jan 2011
Old 07-04-2014 , 08:55   Re: CSGO - Open MOTDURL help
Reply With Quote #6

I did a ugly trick using php and $_GET to redirect , seems like you're familiar with php anyways so it's about 3 lines work
__________________
ecca 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 19:16.


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