I try to compile the code below and i get the following errors:
Code:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Superman"
#define VERSION ".01"
#define AUTHOR "AUTHOR"
new user_Gravity[] = "0.4"
new user_Health[] = "250"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_superman","superman",ADMIN_KICK," :Creates a superman")
}
public superman(id) {
if(read_argc() == 0) {
console_print(id,"[SUPERMAN] You did not select 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,"[SUPERMAN] There is no such user!")
return PLUGIN_HANDLED
}
client_cmd(uid,"name Superman!")
set_user_gravity(uid,user_Gravity)
set_user_health(uid,user_Health)
return PLUGIN_HANDLED
}
Errors:
Code:
/home/groups/amxmodx/tmp3/textsfy9Ft.sma(28) : error 035: argument type mismatch (argument 2)
/home/groups/amxmodx/tmp3/textsfy9Ft.sma(29) : error 035: argument type mismatch (argument 2)
Help plz
__________________