Well heres my first attempt at writing a plugin, and i think i got everything right except when i goto compile it i get 2 error 010's
Code:
/* Plugin generated by tomato_love*/
#include <amxmodx>
#define PLUGIN "Yo_Say"
#define VERSION "0.1"
#define AUTHOR "tomato_love"
//set the access level of these commands...
#define ACCESS ADMIN_ALL //0=everyone
public plugin_init()
{
register_plugin("Yo_Say","0.1","tomato_love");
}
public yo_say(id)
{
new said[192];
new name[32];
get_user_info(id, "name", name, 31)
read_args(said, 191);
remove_quotes(said);
}
if( (contain(said, "yo") != -1) && !(contain(said, " yo") != -1) ) {
client_print(0, print_chat, "*", name, said);
return PLUGIN_HANDELED;
}
Code:
Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
/home/groups/amxmodx/tmp3/textR3u5SE.sma(25) : error 010: invalid function or declaration
/home/groups/amxmodx/tmp3/textR3u5SE.sma(27) : error 010: invalid function or declaration
2 Errors. Could not locate output file /home/groups/amxmodx/public_html/websc3/textR3u5SE.amx (compile failed)
Any help would be greatly appreciated
Thanks in advance!