Funkce

Příklady kódu

11
0

roblox zkontrolujte, zda má hráč gamepass

local id = --gamepass id here

game.Players.PlayerAdded:Connect(function(player)
	if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,id) then
    	--do what you want to do in here
    end
end)
3
0

funkce

funcion name_of_funtion(){

}
2
0

jak vytvořit funkci

function myFunction(){
	console.log('hi')
}
myFunction()
0
0

FUNKCE

[PHP]

<?php
function helloWorld() {
   echo "Hello World";
}

helloWorld();
?>

[Python]

def helloWorld():
  print("Hello World")
  
helloWorld()

[JavaScript / JS Normal Function]

function helloWorld() {
  console.log("Hello World!");
}

helloWorld()

[JavaScript / JS Dynamic, Arrow Function]

const helloWorld = () => {
   console.log("Hello World!");
}

helloWorld()

Související stránky

Související stránky s příklady

V jiných jazycích

Tato stránka je v jiných jazycích

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................