I'm getting errors while compling my code over the webcompiler. Will somebody clean this up for me?
CODE:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#define PLUGIN "SvenCoop - Minigun Powers"
#define VERSION "1.0"
#define AUTHOR "FormulaZero"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon", "weaponminigun", "be")
}
public weaponminigun(id)
{
if (user_has_weapon(id, SCW_MINIGUN){
set_user_maxspeed(id, 300.1)
set_user_gravity(id, 1.5)
client_print(id, print_center, "You can now jump while using the minigun.")
return PLUGIN_HANDLED
}
public client_putinserver(id)
{
set_task(3.0, "welcome", id)
}
public welcome(id)
{
new name[32]
get_user_name(id, name, 31)
client_print(id, print_chat, "[INFORMATION] You can jump when you have a minigun in this server")
}
return PLUGIN_HANDLED
}
ERRORS:
Code:
Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
/home/groups/amxmodx/tmp3/phplsRu9R.sma(19) : error 017: undefined symbol "SCW_MINIGUN" /home/groups/amxmodx/tmp3/phplsRu9R.sma(21) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phplsRu9R.sma(22) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phplsRu9R.sma(26) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phplsRu9R.sma(26) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phplsRu9R.sma(26) : error 004: function "client_putinserver" is not implemented
/home/groups/amxmodx/tmp3/phplsRu9R.sma(32) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phplsRu9R.sma(32) : error 017: undefined symbol "welcome" /home/groups/amxmodx/tmp3/phplsRu9R.sma(35) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phplsRu9R.sma(39) : warning 217: loose indentation
5 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phplsRu9R.amx (compile failed).