PHP Code:
#include <amxmisc>
#include <cstrike>
#include <fakemeta_util>
#define PLUGIN "TESTING"
#define VERSION "1.0"
#define AUTHOR "kingcommentor"
new price
new enabled
new g_MsgSync
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /test","testing")
price = register_cvar("amx_grav_price", "1000")
enabled = register_cvar("amx_grav_enabled", "1")
g_MsgSync = CreateHudSyncObj()
}
public testing(id)
{
new money = cs_get_user_money(id)
if (get_pcvar_num(enabled) == 1)
{
if (money < 1000)
{
client_print(id,print_chat,"You don't have enough money!")
}
else
{
set_hudmessage(0, 127, 255, 0.30, 0.29, 0, 6.0,15.0)
ShowSyncHudMsg(id, g_MsgSync,"TESTING EXECUTED")
fm_user_gravity(id,0.25)
cs_set_user_money(id, money-price)
}
}
}
When compiling I get this error:
test.sma<35> : error 017:undefined symbol "fm_user_gravity"
Which is here
Code:
fm_user_gravity(id,0.25)
Whats the problem ?