Quote:
Originally Posted by epic .
I still confused.
What`s the difference between this :
Code:
public bot_interface()
{
for ( new i = 0 ; i < iNum ; i++ )
{
id = iPlayers[i];
}
}
|
In the first situation, a command executed in the console by a player is being processed. Like if you do in console
The id is in the middle of a string, so it is converted from a string to a number. "27" becomes 27.
In the second situation you are using a loop that is used to do some action over all players (using their ID's).
Basically, "ID" means the same in both examples but its used in different contexts.
__________________