Machine Posted December 22, 2021 Share Posted December 22, 2021 function getPlayerCount() if (getPlayerCount == 1) then outputChatBox ( "More players are required to start the match", source, 255, 255, 255 ) end end addEventHandler ( "onPlayerJoin", root, getPlayerCount ) this code is not working can you please help ? Link to comment
markenic Posted December 22, 2021 Share Posted December 22, 2021 You have to rename your function function playerCount() if (getPlayerCount() == 1) then outputChatBox ( "More players are required to start the match", source, 255, 255, 255 ) end end addEventHandler ( "onPlayerJoin", root, playerCount ) Link to comment
Lisandu Posted December 22, 2021 Share Posted December 22, 2021 7 hours ago, markenic said: You have to rename your function function playerCount() if (getPlayerCount() == 1) then outputChatBox ( "More players are required to start the match", source, 255, 255, 255 ) end end addEventHandler ( "onPlayerJoin", root, playerCount ) That's right Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now