roblox check if player has 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)
roblox check if player has 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)
function
function factorial(n) { if (n == 0) { return 1; } else { return factorial(n - 1) * n; } }
function
function linearSearch(value, list) { let found = false; let position = -1; let index = 0; while(!found && index < list.length) { if(list[index] == value) { found = true; position = index; } else { index += 1; } } return position; }
function
function list_formation(){ $args = array(, 'post_type' => 'categories', 'posts_per_page' => 20, ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); $formations = get_posts(array( 'post_type' => 'formations', 'post__in' => array(16061), 'meta_query' => array( array( 'key' => 'categories', // name of custom field 'value' => '"' . get_the_ID() . '"', 'compare' => 'LIKE' ) ) )); if($formations){ foreach ($formations as $categorie){ // $list = get_field('formations', $formation->ID); // list of categorie with ID formation echo the_title() . '</br>'; } } endwhile; wp_reset_postdata();
FUNCTION
[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()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us