Code:
set_task(30.0, "currPlayCount")
}
public currPlayCount()
{
new currentCSPlayers = get_playersnum(1)
log_amx("Amount of players or conecting players on the server currently is %s", currentCSPlayers) // Logs the current amount of players or connecting players on the server now.
}
I know im doing this wrong somewhere, I am having a huge brain fart. I think it needs to be in a array but im lost.
get_playersnum(1) is suppose to return a native ? 1 i know returns players that are connecting also.
I figured out that I had to convert it into a string. so I added the following things into that snippet above and the log_amx function finally logged a number instead of a blank!
new currPlayerCount[3]
num_to_str(currentCSPlayers, currPlayerCount, 2)
__________________