Hi, Im making a basic rules plugin, i know there are alot out there, hence im not going to publish it.
Although when I compile it, I get this:
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Error: Invalid expression, assumed zero on line 24
Warning: Expression has no effect on line 24
Error: Invalid expression, assumed zero on line 24
Warning: Expression has no effect on line 24
Error: Expected token: ";", but found ")" on line 24
Error: Too many error messages on one line on line 24
Compilation aborted.
4 Errors.
Could not locate output file C:\Program Files\AMX Mod X\amxxstudio\Untitled.amx (compile failed).
And my code is:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define ADMIN_ALL0
#define PLUGIN "Jailbreak Rules"
#define VERSION "1.0"
#define AUTHOR "OneMoreLevel"
new const message [][] =
{
"If you typed /rules, and you see this, then the plug-in is working."
}
new const header [][] =
{
"Rules header"
}
public plugin_init() {
register_plugin("Rules", "1.0", "OneMoreLevel")
register_clcmd ("say /rules","jbrules", 0 ,"Show the rules")
}
public jbrules() {
show_motd ( 1, const message, const header )
}
I see nothing wrong with it, but me as being a newbie, of course there is.
Another bonus question: How can I make it so that when A person has a text file in the same folder as there motd.txt file is, and that file is named "rules.txt", it reads from that file to put it in the motd.
Any help would be greatly appreciated.
__________________