i use this code without problem but it changes everybody fovs i need to pu (id,...)but it doesnt work what should i do ?
this works
PHP Code:
register_message(get_user_msgid("SetFOV"), "Message_SetFOV");
public Message_SetFOV()
{
new fov = get_msg_arg_int(1);
if( fov == 90 )
{
set_msg_arg_int(0, ARG_BYTE, iFov);
}
}
doesnt work
PHP Code:
register_message(get_user_msgid("SetFOV"), "Message_SetFOV");
public Message_SetFOV(id)
{
new fov = get_msg_arg_int(1);
if( fov == 90 )
{
set_msg_arg_int(id, ARG_BYTE, iFov);
}
}