Raised This Month: $ Target: $400
 0% 

Newbie Scripter - First Plugin - Need Help don't Laugh :)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
eXist
Member
Join Date: Apr 2005
Old 04-16-2005 , 20:30   Newbie Scripter - First Plugin - Need Help don't Laugh :)
Reply With Quote #1

I'm a first timer, and after studying up on the small language, I decided to write my first plugin in order to become better and gain more experience.
My first Plugin is desiged to stack a User upon the admin that sent the command. I haven't been able to test my plugin yet because of a compling error.

(Line 38 ) Compiling Error 017 : Undefined Symbol "set_user_origin"

I've read up on the error, and I have been unable to understand the problem. I've looked at other "Stack" Plugins and they haven't help much either.

If someone could help me with this problem it would be very much appriciated.

I apologize if my code is completely falty in the long run, I'm trying.

Code:
#include <amxmodx> #define PLUGIN_NAME "Stack X" #define PLUGIN_VERSION "1.0" #define PLUGIN_AUTHOR "eXist`" public plugin_init()     {         register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)         register_concmd("amx_stackx", "stack_x", ADMIN_KICK, "user Define a Player to be stacked upon yourself.")     }     public stack_x(id)     {         if (get_user_flags(id) != ADMIN_KICK)             {                 console_print(id, "[AMXX] You have no access to that command!")                 return PLUGIN_HANDLED             }         if (read_argc() == 0)             {                 console_print(id, "[AMXX] Please Specify a User")                 return PLUGIN_HANDLED             }         new user[32], uid         read_argv(1,user,32)         uid = find_player("bh",user)         if (uid == 0)             {                   console_print(id,"[AMXX] Invalid User Id")                 return PLUGIN_HANDLED             }         new origin[3]         if (uid == 1)             {                 get_user_origin(id, origin, 0)                 origin[2] = origin[2] + 50                 set_user_origin(uid, origin)                 return PLUGIN_HANDLED             }     }
eXist 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 09:55.


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