AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   which variable is assigned? (https://forums.alliedmods.net/showthread.php?t=47596)

kp_uparrow 11-21-2006 21:36

which variable is assigned?
 
new Players[32]
new playerCount, i, player
get_players(Players, playerCount, "ch")
for (i=0; i<playerCount; i++)
player = Players[i]

if(what should go here? i mean the "# of people in the server"<=5)

The Specialist 11-21-2006 21:45

Re: which variable is assigned?
 
Code:
if( playerCount <= 5) {       then whatever here }

kp_uparrow 11-21-2006 22:15

Re: which variable is assigned?
 
woo hoo thx

too bad i cant keep giving you points :C

The Specialist 11-21-2006 23:17

Re: which variable is assigned?
 
lol no prob glad to help. To know what values your variablles inside of functions hold , just look at the paramters for that function.
Code:
get_players()
Has 4 paramters. Players s the first 1 , that actaully holds the index value of the players. The 2nd param is the number of players, then theres the flags , and a team constant to be passed if the flag e is specified. :wink:


All times are GMT -4. The time now is 07:01.

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