Raised This Month: $ Target: $400
 0% 

Starting learning pawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
m0skVi4a
Senior Member
Join Date: May 2011
Location: Rousse, Bulgaria
Old 11-08-2011 , 14:10   Re: Starting learning pawn
Reply With Quote #7

Quote:
Originally Posted by Tomusaki View Post
Wow, thanx for advice!
Now my code looks much better

PHP Code:
#include <amxmodx>
#define PLUGIN "My first motd"
#define VERSION "0.1"
#define AUTHOR "Me"
public plugin_init()
{
 
register_plugin(PLUGINVERSIONAUTHOR)
 
register_clcmd("/motd")
}
public 
say_motd(id)
{
 
show_motd("motd.txt""my first motd")

NONO
It must be register_clcmd("/motd", "say_motd")

Last edited by m0skVi4a; 11-08-2011 at 14:10.
m0skVi4a is offline
Send a message via Skype™ to m0skVi4a
 



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 14:26.


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