okapi_set_mem_protect

Syntax

native bool:okapi_set_mem_protect(ptr, prot);

Usage

ptr
Address in memory
prot
Protection value, see see PAGE_* constants

Description

Changes the memory protection of the location pointed to by the address

Return

true if the operation was successful, false otherwise