Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is wrong with this GetRankInGroup line?

Asked by 10 years ago

I know this is pretty simple, but it keeps giving me the red underline with the error of "function arguments expected near '>='". How should I fix this?

if player:GetRankInGroup >= 10 then

Thanks!

1 answer

Log in to vote
2
Answered by
RedCombee 585 Moderation Voter
10 years ago

You need your parameters. Remember, it's a function!

if player:GetRankInGroup(ID HERE) >= 10 then
0
Ah, sorry, thanks! SlickPwner 534 — 10y
0
No need to apologize. I like helping people. :D RedCombee 585 — 10y
0
Arguments, actually, I'm pretty sure. Perci1 4988 — 10y
0
The word "parameters" refers to "parentheses" as well. RedCombee 585 — 10y
Ad

Answer this question