Dlc2::nullify: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
Sets the value of the specified variable to 0.<br>Always returns true.<br><br>bool _NULLIFY(void* variable, int unused)<br>{<br> *variable = NULL;<br> return true;<br>} | Sets the value of the specified variable to 0.<br>Always returns true.<br><br>bool _NULLIFY(void* variable, int unused)<br>{<br> *variable = NULL;<br> return true;<br>} | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">dlc2.nullify(variable, unused);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.dlc2.nullify(variable, unused);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''variable:''' unknown (to be checked) | *'''variable:''' unknown (to be checked) | ||
| Line 9: | Line 9: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Dlc2_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Latest revision as of 21:06, 6 May 2017
Sets the value of the specified variable to 0.
Always returns true.
bool _NULLIFY(void* variable, int unused)
{
*variable = NULL;
return true;
}
Syntax
mp.game.dlc2.nullify(variable, unused);
Required Arguments
- variable: unknown (to be checked)
- unused: unknown (to be checked)
Return value
- Boolean
Example
// todo