I've re-written it all, and now i get no errors from the compiler, nor amx-logs. But it still doesn't work!
I think the problem lies in this:
PHP Code:
public HE_was_thrown() {
if (NadeSpawnOn == 1) {
if (GetNadeType() == 1) {
set_task(get_pcvar_float(cvar_time), "SpawnHE")
}
}
return PLUGIN_HANDLED
}
or perhaps in:
PHP Code:
public SpawnHE(id) {
if (is_user_alive(id)) {
give_item(id, "weapon_hegrenade")
}
}
cvar_time is set to be 3.0, so it should be a float..
Once again I have linked the entire plugin here..
Another thing wich annoys me is, that my plugin apearantly needs to be set in "debug mode", as I am using RegisterHam().. Is there no way to avoid that?