This site has been archived and made available for preservation purposes. No edits can be made.
SetServerRule
(Difference between revisions)
Return to current revision
-
[image]Rules.png|thumb|right|Server rules[/image]
Defines a new server rule.
[h="2"] Declaration [/h]
-
-
<code cpp>
VAULTSCRIPT void (*SetServerRule)(std::string, std::string);
native SetServerRule(rule{}, value{});
</code>
-
+
[highlight=cpp]
VAULTSCRIPT VAULTSPACE Void (*VAULTAPI(SetServerRule))(VAULTSPACE cRawString, VAULTSPACE cRawString) _CPP(noexcept);
[/highlight]
[highlight=c]
native SetServerRule(const rule{}, const value{});
[/highlight]
-
[h="2"] Parameters [/h]
-
-
[b]rule[/b] - the new rule (key)
[b]value[/b] - the value of the rule
-
+
[b][wiki="cRawString"]cRawString[/wiki][/b] - the new rule (key)
[b][wiki="cRawString"]cRawString[/wiki][/b] - the value of the rule
-
[h="2"] Return value [/h]
None.
-
-
[h="2"] Usage example (C++) [/h]
<code cpp>
std::string key = "website";
std::string value = "vaultmp.com";
SetServerRule(key, value);
</code>
-
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
[category]Misc functions[/category]