Jump to content

ConsolePlayerNumber: Difference between revisions

no edit summary
(Created page with "{{Template:ACSWarning}} int '''ConsolePlayerNumber''' (void) ==Usage== Returns the number of the local player. Returns -1 if called on the server. This function is only real...")
 
No edit summary
Line 10: Line 10:
==Examples==
==Examples==
This script tells the player what his player number is:
This script tells the player what his player number is:
script 1 (void) net clientside {
<syntaxhighlight lang="c" line="1">
  {{zdw|PrintBold}}(s:"My player number is ", d:[[ConsolePlayerNumber]]());
Script 1 (void) NET CLIENTSIDE
}
{
    PrintBold(s: "My player number is ", d: ConsolePlayerNumber());
}
</syntaxhighlight>


[[Category:ACS Functions]]
[[Category:ACS Functions]]