Raised This Month: $ Target: $400
 0% 

Basic rules plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OneMoreLevel
Senior Member
Join Date: Aug 2009
Location: Look behind you... Very
Old 10-08-2009 , 17:28   Basic rules plugin
Reply With Quote #1

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","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.
__________________
60/100 60%
[||||||||||||||||||||]
Project: Warfighter mod
Blog:
http://sites.google.com/site/dailymultitasker/
PHP Code:
   if ( i_help_you "Yes" ) == )
    
set_user_karma(onemorelevel,add,+1

Last edited by OneMoreLevel; 10-08-2009 at 17:49.
OneMoreLevel 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:33.


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