1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
2<head>
3<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
4<title>SND_GetPlayerLocalVariable</title>
5<link rel="stylesheet" href="../css/nitro.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
7</head>
8<body>
9<div class="refentry" lang="ja"><a name="IDAKKWT"></a><div class="titlepage">
10<div></div>
11<div></div>
12</div>
13<h1>SND_GetPlayerLocalVariable <IMG src="../image/NTR.gif" width="24" height="12" border="0" align=middle><IMG src="../image/TWL.gif" width="24" height="12" border="0" align=middle></h1>
14<h2>Syntax</h2>
15<dl>
16<dd><pre class="funcsynopsisinfo"><code>#include &lt;nitro/snd.h&gt;</code></pre></dd>
17<dd><pre class="funcprototype"><code class="funcprototype">s16 SND_GetPlayerLocalVariable( int <var>playerNo</var>, int <var>varNo</var> );</code><br></pre></dd>
18</dl>
19<div class="refsection" lang="ja"><a name="IDA0LWT"></a>
20      <h2>Arguments</h2>
21
22      <div class="variablelist">
23<table border="0">
24<col align="left" valign="top">
25<tbody>
26<tr>
27<td><em><strong><font face="Courier New">playerNo</font></strong></em></td>
28<td>The player number. Takes values in the range of 0 to 15.</td>
29</tr>
30<tr>
31<td><em><strong><font face="Courier New">varNo</font></strong></em></td>
32<td>The variable number. Takes values in the range of 0 to 15.</td>
33</tr>
34</tbody>
35</table>
36</div>
37
38    </div>
39<div class="refsection" lang="ja"><a name="IDAQMWT"></a>
40      <h2>Return Values</h2>
41
42      <p>The value of the Player local variable.</p>
43    </div>
44<div class="refsection" lang="ja"><a name="IDAXMWT"></a>
45      <h2>Description</h2>
46      <p>
47This function gets the value of the sequence local variable.
48</p>
49      <p>
50The sequence local variable's initial value is -1. The variable is initialized when the system is initialized and also when the Player starts.
51</p>
52      <p>
53This function is carried out asynchronously with respect to ARM7 command functions. To achieve synchronization, you must use a function such as <tt class="function"><a href="SND_IsFinishedCommandTag.html">SND_IsFinishedCommandTag</a></tt> to confirm that ARM7 commands have finished processing.
54</p>
55    </div>
56<h2>See Also</h2>
57<p><a href="SND_IsFinishedCommandTag.html">SND_IsFinishedCommandTag</a></p>
58<h2>Revision History</h2>
59<p>2004/07/20 Initial version.</p>
60</div>
61<hr><p>CONFIDENTIAL</p></body>
62</html>
63