GetPlayerPoolSize under OnPlayerConnect - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetPlayerPoolSize under OnPlayerConnect (
/showthread.php?tid=574209)
GetPlayerPoolSize under OnPlayerConnect -
Blokkmonsta - 14.05.2015
Hello,
i updated all the loops in my gamemode to the new GetPlayerPoolSize variant.
I use OnPlayerConnect to save the GetPlayerPoolSize into a variable.
But i noticed that PlayerPoolSize isnt always updated unter OnPlayerConnect.
Is this a bug or does this function simply not work in this callback?
Re: GetPlayerPoolSize under OnPlayerConnect -
Vince - 14.05.2015
It gets the highest playerid currently in use, not the total amount of players.
AW: GetPlayerPoolSize under OnPlayerConnect -
Blokkmonsta - 14.05.2015
Yes i know.
I tested it with two players on the server. But under OnPlayerConnect GetPlayerPoolSize still says 0 is the highest playerid.