From Stealth Client

Jump to: navigation, search
m (1 revision)
m
Line 6: Line 6:
</noinclude>
</noinclude>
== CharName ==
== CharName ==
-
<source lang="pascal">function CharName() : String</source>
+
<source lang="pascal">function CharName():String</source>
-
Возвращает параметр чара - ''имя'' (Name).
+
Returns the char -'' name''(Name).
-
В случае, если отсутствует соединение с UO сервером - вернет пустую строку ('').  
+
If there is no connection to the UO server - returns an empty string('').  
-
'''Пример 1:'''
+
'''Example 1:'''
<source lang="pascal">
<source lang="pascal">
-
if (CharName = 'MyChar') then
+
if(CharName = 'MyChar') then
begin
begin
-
   ''Do something
+
   '' Do something
-
end;
+
end;  
</source>
</source>
-
 
+
'''Example 2:'''
-
'''Пример 2:'''
+
<source lang="pascal">
<source lang="pascal">
-
AddToSystemJournal('Имя чара: ' + CharName);
+
AddToSystemJournal('char name:' + CharName);
</source>
</source>

Revision as of 21:39, 15 February 2012


CharName

function CharName():String

Returns the char - name(Name).

If there is no connection to the UO server - returns an empty string().

Example 1:

if(CharName = 'MyChar') then
begin
  '' Do something
end;

Example 2:

AddToSystemJournal('char name:' + CharName);