note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
getproperty
warning
This function starts with a lowercase letter.
Description
Get a specific property from the memory, the string is returned as a packed string!
Name | Description |
---|---|
id | The virtual machine to use, you should keep this zero. (optional=0) |
name[] | The property's name, you should keep this "". |
value | The property's unique ID, Use the hash-function to calculate it from a string. (optional=cellmin) |
string[] | The variable to store the result in, passed by reference. |
Returns
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);
Notes
tip
It is recommended to use the PVars/SVars or GVar plugin instead of these natives for being very slow.
Related Functions
- setproperty: Set a property.
- deleteproperty: Delete a property.
- existproperty: Check if a property exists.