Raised This Month: $ Target: $400
 0% 

get_players team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Upri98
New Member
Join Date: Sep 2019
Location: Balkan
Old 01-26-2020 , 05:24   Re: get_players team
Reply With Quote #1

Quote:
Originally Posted by grimvh2 View Post
PHP Code:
RandomPlayer()
{
    new 
players[32], pnum;
    
get_players(playerspnum);
    
// get_players(players, pnum, "e", "CT");
    //get_players(players, pnum, "e", "TERRORIST"
   
    
if( !pnum ) return -1;
    
    return 
players[random(pnum)];

Can someone explain this step?
Does it have any return value or smth?

Code:
if( !pnum )
__________________
Coding is !easy.

Last edited by Upri98; 01-26-2020 at 05:32. Reason: im idiot.
Upri98 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 14:56.


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