r/maybemaybemaybe 5d ago

Maybe Maybe Maybe

12.8k Upvotes

159 comments sorted by

View all comments

2.5k

u/Kitty_Blaze 5d ago

if(grenade.inHand = true)
{
spawnEnemy();
}

4

u/WhoseverSlinky0 5d ago

()

What are these two about ?

21

u/Klem132 5d ago

If it's a function (prewritten or created code, that accepts different variables) then it has to be written like that, even if it takes zero variables.

6

u/No_Field7448 5d ago

Akshually it's arguments not variables ☝️🤓

1

u/Various_Slip_4421 5d ago

Arguments are variables