Update: Changed it to the following:
Code:
public my_slay(param[4][256])
{
new id, steamid[35], text[256]
id=str_to_num(param[0])
format(steamid, 34, "%s", param[1])
format(text, 255, "%s", param[2])
new userid = get_user_userid(id)
client_print(id, print_chat, "Rufe slay auf")
if (is_user_alive(id))
{
client_print(id, print_chat, "SLAY!")
server_print("amx_slay %s", steamid)
server_cmd("amx_slay #%d", userid)
}
else
{
new myparam[4][256]
new temp[10]
num_to_str(id, temp, 9)
format(myparam[0], 10, temp)
format(myparam[1], 34, "%s", steamid)
format(myparam[2], 255, "%s", text)
server_print("Dead Client")
set_task(1.0, "my_slay", 4711+id, myparam)
}
return
}
Now I get the compile error: muppets-filter.sma(587) : error 048: array dimensions do not match
Line 587 is the set_task line
__________________