AR/getPlayerSerial: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==Syntax==
<section name="Server" class="server" show="true">
<syntaxhighlight lang="lua">
string getPlayerSerial ( player thePlayer )
</syntaxhighlight>
{{OOP||[[player]]:getSerial|serial|}}
===Required Arguments===
*'''thePlayer:''' الاعب المراد جلب سريالة
</section>
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">
string getPlayerSerial ( )
</syntaxhighlight>
{{OOP||[[Player]].getSerial}}
</section>
==Example==
==Example==
<section name="Example 1" class="server" show="true">
<section name="Example 1" class="server" show="true">

Revision as of 16:46, 10 March 2016

Syntax

Click to collapse [-]
Server
string getPlayerSerial ( player thePlayer )

OOP Syntax Help! I don't understand this!

Method: player:getSerial(...)
Variable: .serial


Required Arguments

  • thePlayer: الاعب المراد جلب سريالة
Click to collapse [-]
Client
string getPlayerSerial ( )

OOP Syntax Help! I don't understand this!

Method: Player.getSerial(...)



Example

Click to collapse [-]
Example 1

يوضح لك هذا المثال عند كتابة كلمة يقوم بظهار سريال الاعب

function Serial ( Player ) -- وضيفة
    local Serial = getPlayerSerial( Player ) -- جلب سريال الاعب
        outputChatBox( "السريال الخاص بك :" .. Serial, Player ) -- اخراج نص
end -- انتهاء الوضيفة
addCommandHandler( "سريالي", Serial ) -- عند كتابة كلمة نخلية يسوي الوضيفة و هي Serial