Getproperty

getproperty

Description:
Function getproperty get a specific property from the memory, the string is returned as a packed string!
This function name starts with a lowercase letter.


Parameters:
(id = 0, name[] = "", value = cellmin, string[] = "")
int id The virtual machine to use, you should keep this zero.
string name The property's name, you should keep this "".
int value The property's unique ID, Use the hash-function to calculate it from a string.
string string The variable to store the result in, passed by reference.


Return Values:
The value of a property when the name is passed in; fills in the string argument when the value is passed in. If the property does not exist, this function returns zero.


Examples:
new value[16];
getproperty(0, "", 123984334, value);
strunpack(value, value, sizeof(value));
print(value);


Related Functions
The following functions may be useful, as they are related to this function in one way or another.