07.02.2014, 01:19
(
Последний раз редактировалось сан саныч; 07.02.2014 в 02:19.
)
hello, how to calculate the position of the player in a race?
how to do it using floatround? not necessarily code verbal explanation will help, thanks
sorry for bad English=)
PHP код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
player_point [playerid]++;
format (string, string, "you position %i/%i", ??, playersInRace());
return 1;
}
playersInRace() //returns the number of players in a race
player_point [playerid];// passed сheckpoint
MAX_Checkpoint //the number of all the checkpoint race
sorry for bad English=)