Hey guys I have problems with getting parameters to a set_task, and I was thinking Im using it right but now I see I dont get the correct values:
I have a function
PHP Code:
strike_game(iParams[], id)
And if I want to set a task to it with my params I do(for example):
PHP Code:
public client_connect(id)
{
new Params[4]
Params[0] = 0
Params[1] = 1
Params[2] = 5
Params[3] = 10
set_task(10.0, "strike_game", id, Params)
}
Now, how do I know that the values are incorrect?
Cuz in strike_game function I have an 'if' that checks is_user_connected || !is_user_alive of that id sent, and it always gets blocked there, and I dont understand why (I realized it with placing client_print's).
Why do I use it wrongly?
__________________