native

json_array_replace_bool

Syntax

native bool:json_array_replace_bool(JSON:array, index, bool:boolean);

Description

Replaces an element in the array with boolean value.

Parameters

array Array handle
index Position in the array to be replaced
boolean Boolean value to set

Return

True if succeed, false otherwise

Error

If passed handle is not a valid array