There isnt really an error, the only thing the console says it "Plugin file open error."
But when compiling I get these errors with this code:
PHP Code:
/home/groups/amxmodx/tmp3/phpaYfhqt.sma(16) : error 017: undefined symbol "id"
/home/groups/amxmodx/tmp3/phpaYfhqt.sma(32) : warning 213: tag mismatch
1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpaYfhqt.amx (compile failed
How do you read and understand these? Can someone explain how to read a compiling error if its not blatently shown whats wrong.
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#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 I found that if you space these out like this, i get a whole nother list of compiling errors, do they have to be all together?
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "TESTING"
#define VERSION "1.0"
#define AUTHOR "kingcommentor"