Gameplay::deleteIncident: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
Delete an incident with a given id.<br><br>=======================================================<br>Correction, I have change this to int, instead of int*<br>as it doesn't use a pointer to the createdIncident.<br>If you try it you will crash (or) freeze.<br>======================================================= | Delete an incident with a given id.<br><br>=======================================================<br>Correction, I have change this to int, instead of int*<br>as it doesn't use a pointer to the createdIncident.<br>If you try it you will crash (or) freeze.<br>======================================================= | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">gameplay.deleteIncident(incidentId);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.gameplay.deleteIncident(incidentId);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''incidentId:''' int | *'''incidentId:''' int | ||
| Line 8: | Line 8: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Gameplay_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:06, 6 May 2017
Delete an incident with a given id.
=======================================================
Correction, I have change this to int, instead of int*
as it doesn't use a pointer to the createdIncident.
If you try it you will crash (or) freeze.
=======================================================
Syntax
mp.game.gameplay.deleteIncident(incidentId);
Required Arguments
- incidentId: int
Return value
- int
Example
// todo