This site has been archived and made available for preservation purposes. No edits can be made.

ValueToString

This is an old revision of this page, as edited 04-26-2012, 09:53 PM by foxtacles (contribs). It may differ significantly from the current revision.
Retrieves the string representation of an Actor value.

[top]Declaration

Code cpp:
VAULTSCRIPT vaultmp::String (*ValueToString)(vaultmp::Index);
native ValueToString(index, value{});

[top]Parameters

vaultmp::Index - the index of the Actor value
value (PAWN only) - an array large enough to hold at least 64 characters

[top]Return value

The C++ version returns a vaultmp::String containing the string representation of the actor value. The PAWN version has no return value.

[top]Usage example (C++)

Code cpp:
vaultmp::String value;
value = ValueToString(index);

[top]Usage example (PAWN)

Code c:
new value{64};
ValueToString(index, value);