Raised This Month: $ Target: $400
 0% 

Easy Variables


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
rajabilal555
Junior Member
Join Date: Jan 2015
Old 08-26-2015 , 07:54   Easy Variables
Reply With Quote #1

Hi there,

I need some help
Code:
#include <amxmodx>
#include <amxmisc>

Public admin_motd(id,cid) {
	
	show_motd(id,"motd.txt","Message of the Day.")
	return PLUGIN_CONTINUE   
}

public plugin_init() {

    register_clcmd("say /motd","admin_motd",0,"- Shows the MOTD.")
}
In this code i wan't the File name to be a Variable that can be accessed from the config or any file that have the ability to do it but i wan't to make it so no body have to recompile it and edit the file name / change the file.
rajabilal555 is offline
 



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:13.


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