AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help me with get_players () (https://forums.alliedmods.net/showthread.php?t=101528)

MasterKy 08-24-2009 18:52

Help me with get_players ()
 
i do make a code with this function definited:
get_players ( gi_players, gi_playercnt, "h", CS_TEAM_CT )

and the compiler returned this:
argument type mismatch (argument 4)

plz help me :cry:

Bugsy 08-24-2009 19:20

Re: Help me with get_players ()
 
Quote:

Originally Posted by MasterKy (Post 911765)
i do make a code with this function definited:
get_players ( gi_players, gi_playercnt, "h", CS_TEAM_CT )

and the compiler returned this:
argument type mismatch (argument 4)

plz help me :cry:

This function is no longer supported and is a bit buggy depending on which flags you use.
See this link.

Code:

If specified, you can constrain which players are returned by flags:
"a" - Don't return dead players
"b" - Don't return alive players
"c" - Skip bots
"d" - Skip real players
"e" - Match with passed team
"f" - Match with part of name
"g" - Ignore case sensitivity

PHP Code:

new iPlayers32 ];
new 
iPlayerCount;

get_players iPlayers iPlayerCount "e" "TERRORIST" );

get_players iPlayers iPlayerCount "e" "CT" ); 



All times are GMT -4. The time now is 15:11.

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