Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "Custom F.U.N Plugin"
#define VERSION "1.0"
#define AUTHOR "Styles"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon", "Event_CurWeapon", "be", "1=1")
}
public Event_CurWeapon(id)
{
new oldspeed[id] = get_user_maxspeed(id);
if(CSW_KNIFE)
{
set_user_maxspeed(id,700.0);
set_hudmessage(255, 170, 0, -1.0, 0.32, 0, 6.0, 12.0);
show_hudmessage(id, "--> You know can go faster <--");
}
else
{
set_user_maxspeed(id,oldspeed[id]);
set_hudmessage(255, 170, 0, -1.0, 0.32, 0, 6.0, 12.0);
show_hudmessage(id, "--> Your speed is now over <--");
}
}
i get an:
Must be constant expression; assumed zero for lines 18 x2
and Emty Statement on 19 and fatal error 107 to many errors