I know what's wrong, it's my try to get thoose §/§$&%§!" variables into set_task, but how could I make it better?
Code:
public my_slay(id, steamid[35], text[256])
{
new userid = get_user_userid(id)
client_print(id, print_chat, "Rufe slay auf")
if (is_user_alive(userid))
{
client_print(id, print_chat, "SLAY!")
server_print("amx_slay %s", steamid)
server_cmd("amx_slay #%d", userid)
}
else
{
new param[4]
param[0]=id;
format(param[1], 34, "%s", steamid);
format(param[2], 255, "%s", text);
server_print("Dead Client")
set_task(1.0, "my_slay", 4711+id, param)
}
return
}
My code instantly crashes when called on a dead client ("else" part)
__________________