Raised This Month: $ Target: $400
 0% 

Passing team to get_players?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Isobold
Veteran Member
Join Date: Mar 2004
Old 07-21-2005 , 10:06   Passing team to get_players?
Reply With Quote #1

Hiw do I pass a team to the function get_players?

I want to use flag e to get all spec players.

Code:
get_players(a_ids, playernum, "ce",CS_TEAM_SPECTATOR)
returns:
/home/groups/amxmodx/tmp/phpUa9dKO.sma(237) : error 035: argument type mismatch (argument 4)

If read this:
http://www.amxmodx.org/funcwiki.php?go=func&id=174

and flag e should do this:
"e" - Match with passed team
Isobold is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 07-21-2005 , 10:50  
Reply With Quote #2

Code:
get_players(a_ids,playernum,"ce","SPECTATOR")
FeuerSturm is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-21-2005 , 10:58  
Reply With Quote #3

Counter-Terrorists: "CT"
Terrorists: "TERRORIST"

;)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Isobold
Veteran Member
Join Date: Mar 2004
Old 07-21-2005 , 12:27  
Reply With Quote #4

It works fine. Thx

karma for you both
Isobold is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:22.


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