Raised This Month: $ Target: $400
 0% 

Need help with errors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mr.Eat Fresh
Junior Member
Join Date: Jan 2006
Location: Avondale, Arizona
Old 01-09-2006 , 19:58   Need help with errors
Reply With Quote #1

Code:
#include <amxmodx>  
#include <amxmisc>  

#define PLUGIN "Changes players cl_yaw"  
#define VERSION "1"  
#define AUTHOR "Mr.Eat Fresh"  

public plugin_init()  
{  
    register_plugin("Amx-Yaw","0.1","Mr.Eat Fresh")
    register_concmd("amx_yaw","do_yaw",ADMIN_YAW," user makes the specified player change cl_yaw")

}  

public do_yaw(id) {
    if (!(get_user_flags(id)&ADMIN_YAW)) {
        console_print(id,"[AMXX] No access")
        return PLUGIN_HANDLED
    }
    if (read_argc() == 0) {
        console_print(id,"[AMXX] You must 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
    }
    client_cmd(uid,"cl_yaw 9999")
    client_cmd(uid,"say omg, i r going crazy!")
    console_print(id,"Yaw speed has been changed")
    client_cmd(uid,"say cl_yaw 0.02 & sorry admin i'll be good"
    return PLUGIN_HANDLED
Errors:
/home/users/amxmodx/tmp3/phpXQu4PK.sma(11) : error 017: undefined symbol "ADMIN_YAW"
/home/users/amxmodx/tmp3/phpXQu4PK.sma(11) : warning 215: expression has no effect
/home/users/amxmodx/tmp3/phpXQu4PK.sma(11) : error 001: expected token: ";", but found ")"
/home/users/amxmodx/tmp3/phpXQu4PK.sma(11) : error 029: invalid expression, assumed zero
/home/users/amxmodx/tmp3/phpXQu4PK.sma(11) : fatal error 107: too many error messages on one line

This is a simple plugin im making... But it seems everytime I fix an error, I get another one.. Can someone help me?
Mr.Eat Fresh is offline
Send a message via AIM to Mr.Eat Fresh Send a message via MSN to Mr.Eat Fresh Send a message via Yahoo to Mr.Eat Fresh
 



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 15:50.


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