Jump to content

idk how to use *


Deep thinker

Recommended Posts

Posted

hey i have a script which makes the slots of the players half than the current

local curMaxPlayers = getMaxPlayers()
local newMaxPlayers = math.ceil( curMaxPlayers / 2 )

setMaxPlayers( newMaxPlayers )

and i tried to make it double the slots by changing "/" into "*" but it failed can someone tell me what to do,and please don't tell me to change the config i am not that silly :3

 

7YwV3kT.png

ℙℝM∀✗

Video Editor --- Images and pictures Editor.

Trial LUA Scripter. 

Scripting Skills 

     ↧ 

26%

 

Posted
local curMaxPlayers = getMaxPlayers()
local newMaxPlayers = curMaxPlayers * 2

setMaxPlayers( newMaxPlayers )

Remove the math.ceil when multiplying.

Discord: its.tails

Posted
1 minute ago, Tails said:

local curMaxPlayers = getMaxPlayers()
local newMaxPlayers = curMaxPlayers * 2

setMaxPlayers( newMaxPlayers )

Remove the math.ceil when multiplying.

i would like to thank you for your efforts but it isn't working

 

7YwV3kT.png

ℙℝM∀✗

Video Editor --- Images and pictures Editor.

Trial LUA Scripter. 

Scripting Skills 

     ↧ 

26%

 

Posted

then you mean i can't change the slots using this function?

3 minutes ago, CodyL said:

 Max players is not something that are able to change through that.

 

 

7YwV3kT.png

ℙℝM∀✗

Video Editor --- Images and pictures Editor.

Trial LUA Scripter. 

Scripting Skills 

     ↧ 

26%

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...