<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/PL/GetPlayerSerial?action=history&amp;feed=atom</id>
	<title>PL/GetPlayerSerial - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/PL/GetPlayerSerial?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/GetPlayerSerial&amp;action=history"/>
	<updated>2026-05-13T15:52:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/GetPlayerSerial&amp;diff=67393&amp;oldid=prev</id>
		<title>Xyrusek: translate function getPlayerSerial to Polish</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/GetPlayerSerial&amp;diff=67393&amp;oldid=prev"/>
		<updated>2020-09-12T21:06:07Z</updated>

		<summary type="html">&lt;p&gt;translate function getPlayerSerial to Polish&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
Ta funkcja zwraca [[serial]] przypisany do danego [[player|gracza]].&lt;br /&gt;
{{Note|Wersja funkcji [[getPlayerSerial]] po stronie klienta jest przestażała, gdyż czasami zwracany serial jest niepoprawny, co potencjalnie jest niebezpieczne. Poniższy artykuł odnosi się jedynie do wykorzystania funkcji po stronie serwera.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPlayerSerial ( player gracz )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{PL/OOP||[[player]]:getSerial|serial|}}&lt;br /&gt;
===Wymagane argumenty===&lt;br /&gt;
*'''gracz:''' [[Player|Gracz]] element gracza, od którego chcemy pobrać serial.&lt;br /&gt;
&lt;br /&gt;
==Wynik==&lt;br /&gt;
Zwraca numer seryjny gracza jako ''string'' jeżeli został odnaleziony, lub ''false'' w innym przypadku.&lt;br /&gt;
&lt;br /&gt;
==Przykład==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Serwer&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Przykład nr 1:''' Ten przykład tworzy komendę, za pomocą której gracz, może sprawdzić własny serial.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function sprawdzMojSerial(gracz, komenda)&lt;br /&gt;
    local serial = getPlayerSerial(gracz)&lt;br /&gt;
    if serial then&lt;br /&gt;
        outputChatBox(&amp;quot;Twoj numer seryjny to: &amp;quot;..serial, gracz)&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox(&amp;quot;Niestety, nie posiadasz numeru seryjnego. =(&amp;quot;, gracz)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;mojserial&amp;quot;, sprawdzMojSerial)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>Xyrusek</name></author>
	</entry>
</feed>