Raised This Month: $ Target: $400
 0% 

first "plugin", scripting errors?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KingCommentor
Senior Member
Join Date: Jan 2008
Location: Floridaaaa
Old 07-28-2008 , 20:46   first "plugin", scripting errors?
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)
 
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(01272550.300.2906.0,15.0)
   
ShowSyncHudMsg(idg_MsgSync,"TESTING EXECUTED")
   
fm_user_gravity(id,0.25
   
cs_set_user_money(idmoney-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 ?

Last edited by KingCommentor; 07-28-2008 at 20:50.
KingCommentor is offline
Send a message via AIM to KingCommentor
 



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 05:31.


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