AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved get_playersnum_ex() wrong values (https://forums.alliedmods.net/showthread.php?t=319000)

iceeedr 10-05-2019 12:34

get_playersnum_ex() wrong values
 
Good afternoon friends, all right?
I have a problem with get_playersnum_ex () as logs below:

PHP Code:

new TeamCt get_playersnum_ex(GetPlayers_MatchTeam"CT")
    new 
TeamTr get_playersnum_ex(GetPlayers_MatchTeam"TERRORIST")

    
log_amx("%i - %i - %i"TeamCtTeamTrVarCheckPlayersSound

Code:

L 10/05/2019 - 13:27:30: L 10/05/2019 - 13:45:47: [teste.amxx] 5 - 1 - 3
L 10/05/2019 - 13:45:48: [teste.amxx] 5 - 1 - 3
L 10/05/2019 - 13:45:49: [teste.amxx] 5 - 1 - 3
L 10/05/2019 - 13:45:49: [teste.amxx] 5 - 1 - 3
L 10/05/2019 - 13:45:50: [teste.amxx] 5 - 1 - 3
L 10/05/2019 - 13:45:50: [teste.amxx] 5 - 1 - 3
L 10/05/2019 - 13:45:51: [teste.amxx] 5 - 0 - 3
L 10/05/2019 - 13:45:51: [teste.amxx] 5 - 0 - 3
L 10/05/2019 - 13:45:52: [teste.amxx] 5 - 0 - 3
L 10/05/2019 - 13:45:52: [teste.amxx] 5 - 0 - 3
L 10/05/2019 - 13:45:53: [teste.amxx] 5 - 0 - 3
L 10/05/2019 - 13:45:53: [teste.amxx] 5 - 0 - 3
L 10/05/2019 - 13:45:54: [teste.amxx] 5 - 0 - 3
L 10/05/2019 - 13:45:54: [teste.amxx] 5 - 0 - 3
L 10/05/2019 - 13:45:55: [teste.amxx] 5 - 0 - 3
L 10/05/2019 - 13:45:55: [teste.amxx] 5 - 0 - 3
L 10/05/2019 - 13:45:56: [teste.amxx] 5 - 0 - 3
L 10/05/2019 - 13:45:56: [teste.amxx] 5 - 0 - 3-

At the moment there were 5 CT's and 7 Tr's on the server, but in the count the Tr's are not correct, would it be a bug, or am I using it the wrong way?

Edit Solved: The problem seems to happen on amx 1.10 5378, I downgraded to amx 1.9 5249 and no longer presented the problem.


All times are GMT -4. The time now is 02:40.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.