Raised This Month: $ Target: $400
 0% 

Compile 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 , 01:09   Compile errors
Reply With Quote #1

I wrote this plugin just now as my first ever to see if I could do it, but I got compiling errors but don't know how to read them/learn from them.
Does anyone know why this happened?


Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "TESTING"
#define VERSION "1.0"
#define AUTHOR "kingcommentor"
new money
new gravity
new price
new enabled
public plugin_init() 
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /test","testing")
money = cs_get_user_money(id)
gravity = register_cvar("amx_gravity", "0.25")
price = register_cvar("amx_grav_price", "1000")
enabled = register_cvar("amx_grav_enabled", "1")
}
public testing(id)
{
 if (get_pcvar_num(enabled) == 1)
 {
   if (Money < 1000)
    {
    client_print(id,print_chat,"You don't have enough money!")
    }
    else
    {
    client_print(id, print_chat, "TESTING EXECUTED")
    set_user_gravity(id,(gravity))
    cs_set_user_money(id, money-price)
    }
 }
}
Also how can I make the message appear in the middle of the players screen instead of down where teh chat is .. and also how can I make it appear as a HUD ?

Last edited by KingCommentor; 07-28-2008 at 14:40.
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