Gameplay::stringToInt: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Basically the same as std::stoi.
Basically the same as std::stoi.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">gameplay.stringToInt(string, outInteger);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.gameplay.stringToInt(string, outInteger);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''string:''' String
*'''string:''' String
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Gameplay_function_c}}
{{Gameplay_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 09:58, 22 July 2024

Basically the same as std::stoi.

Syntax

mp.game.gameplay.stringToInt(string, outInteger);

Required Arguments

  • string: String
  • outInteger: int

Return value

  • int

Example

// todo

See also