Raised This Month: $ Target: $400
 0% 

which variable is assigned?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 11-21-2006 , 21:36   which variable is assigned?
Reply With Quote #1

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)
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-21-2006 , 21:45   Re: which variable is assigned?
Reply With Quote #2

Code:
if( playerCount <= 5) {       then whatever here }
The Specialist is offline
Send a message via AIM to The Specialist
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 11-21-2006 , 22:15   Re: which variable is assigned?
Reply With Quote #3

woo hoo thx

too bad i cant keep giving you points :C
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 11-21-2006 , 23:17   Re: which variable is assigned?
Reply With Quote #4

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.
The Specialist is offline
Send a message via AIM to The Specialist
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 07:01.


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