Raised This Month: $51 Target: $400
 12% 

Solved Get players TT/CT with ID?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joseph9
Junior Member
Join Date: Nov 2016
Location: Poland
Old 04-02-2020 , 12:56   Get players TT/CT with ID?
Reply With Quote #1

EDIT: Just noticed that I used wrong print, sorry for trouble

so I'm trying to get some CT players (i use PoD bots) but get_players(iPlayers, iNum, "CT") return 1

PHP Code:
new iPlayers[32], iNumid
 
get_players
(iPlayersiNum"CT");
 
for (new 
0iNumi++) {
    
id iPlayers[i];
    
client_print(idprint_chat"%i"id)

I'm trying to get top player each side, any hints?

Last edited by joseph9; 04-02-2020 at 16:11.
joseph9 is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 04-02-2020 , 13:36   Re: Get players TT/CT with ID?
Reply With Quote #2

Syntax
PHP Code:
native get_players(players[MAX_PLAYERS], &num, const flags[] = "", const team[] = ""); 
You forgot to put flags.
__________________
Retired.
Xalus is offline
joseph9
Junior Member
Join Date: Nov 2016
Location: Poland
Old 04-02-2020 , 13:48   Re: Get players TT/CT with ID?
Reply With Quote #3

just added "e" flag, still returns 1
joseph9 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-03-2020 , 07:15   Re: Get players TT/CT with ID?
Reply With Quote #4

get_players(iPlayers, iNum, "e", "CT");
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 12:43.


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