Raised This Month: $ Target: $400
 0% 

First plugin attempt - Error 010


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tomato_love
Junior Member
Join Date: Feb 2009
Old 02-08-2009 , 22:17   First plugin attempt - Error 010
Reply With Quote #1

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!
tomato_love 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 17:01.


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