Raised This Month: $32 Target: $400
 8% 

Motds (.html ) problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wizzkidon
Senior Member
Join Date: Jan 2017
Old 05-14-2022 , 05:44   Motds (.html ) problem
Reply With Quote #1

Hello. I used this plugin for my motds:

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd( "say /preturi", "CMDPreturi" )
	register_clcmd( "say /VIP", "CmdVIP" )
	register_clcmd( "say /wantvip", "CmdWantvip" )
	register_clcmd( "say /regulament", "CmdRegulament" )
	register_clcmd( "say /rules", "CmdRules" )
	register_clcmd( "say /reguli", "CmdReguli" )
	register_clcmd( "say /info", "CmdInfo" )
        register_clcmd( "say /abilitati", "CmdAbilitati" )
	
	
	// Add your code here...
}



public CMDPreturi ( id )
{


	show_motd( id, "addons/amxmodx/configs/Motds/Preturi.html", "Preturi" );

}

public CmdVIP ( id )
{
	
	show_motd( id, "addons/amxmodx/configs/Motds/VIP.html", "Forum" );
	
}

public CmdWantvip ( id )
{
	
	show_motd( id, "addons/amxmodx/configs/motds/WantVIP.html", "VIP" );

}

public CmdRegulament ( id )
{
	
	show_motd( id, "addons/amxmodx/configs/motds/Regulament.html", "Regulament" );

}

public CmdRules ( id )
{
	
	show_motd( id, "addons/amxmodx/configs/motds/Regulament.html", "Rules" );

}

public CmdReguli ( id )
{
	
	show_motd( id, "addons/amxmodx/configs/motds/Regulament.html", "Reguli" );

}

public CmdInfo ( id )
{
	
	show_motd( id, "addons/amxmodx/configs/motds/Info.html", "Info" );


}

public CmdAbilitati ( id )
{
	
	show_motd( id, "addons/amxmodx/configs/motds/Abilitati.html", "Abilitati" );

}

If i write for the first time /vip (exemple) appear this thing: Photo

If i try again after i close this tab, looks normal.
Where is the problem?
wizzkidon is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-14-2022 , 07:32   Re: Motds (.html ) problem
Reply With Quote #2

The problem is not related to the plugin.

Also stop using hardcoded plugins.
https://forums.alliedmods.net/showthread.php?t=297627
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
wizzkidon
Senior Member
Join Date: Jan 2017
Old 05-14-2022 , 08:52   Re: Motds (.html ) problem
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
The problem is not related to the plugin.

Also stop using hardcoded plugins.
https://forums.alliedmods.net/showthread.php?t=297627

Still don't working. Photo

Edit1: I have the .txt file on data>motds>reguli.txt
+ configs>MotdCommands.ini - /reguli = reguli.txt

Last edited by wizzkidon; 05-14-2022 at 08:53.
wizzkidon is offline
wizzkidon
Senior Member
Join Date: Jan 2017
Old 05-15-2022 , 10:07   Re: Motds (.html ) problem
Reply With Quote #4

Any another way to fix this?
I'm waiting to more responses.

Last edited by wizzkidon; 05-15-2022 at 10:07.
wizzkidon is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-15-2022 , 14:03   Re: Motds (.html ) problem
Reply With Quote #5

Show the .txt file.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 22:35.


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