MAX_PLAYERS stores MaxPlayer + bot playing?
#1

it's not a stupid answer, if you think that ALL the script use a cicle from 0 to MAX_PLAYERS

So:
if max players are 100
if currenly players are 100
if currently bots are 10
remember that bots have their univocal ID

the cicle will take from 0 to 100

but the effective MAX ids are to 109 because:

100 are players + 10 bots = 110 (-1 because count starts from 0 not from 1)

The last 10 players will be not included to the cicle...
Reply
#2

Here - http://forum.sa-mp.com/index.php?topic=117573.0
Reply
#3

you start the server with 100 slots then you create 10 npcs/bots and your slotnumber is 90
Reply
#4

MAX_PLAYERS is a static define of 500, it does not change.

Bots join as players, they have ID's as players and they take up slots, but it will not make a difference to the MAX_PLAYERS define.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)